From b96a9130acd0b0ee81073073d3edcedafc6ea6ae Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 1 Apr 2011 17:18:46 +0300 Subject: [PATCH] Switch the two remaining rpm runs under fakechroot - Everything in the test-suite except rpmbuild execution is now performed in the fakechroot environment --- tests/rpmi.at | 6 +++--- tests/rpmvercmp.at | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/rpmi.at b/tests/rpmi.at index ad4d9c9..4d53633 100644 --- a/tests/rpmi.at +++ b/tests/rpmi.at @@ -86,11 +86,11 @@ AT_CHECK([ junk="${RPMTEST}/not_an.rpm" cat << EOF > "${junk}" no_such.file -not_an.rpm +not_pkg.rpm EOF -run rpm \ - -Uvv "${junk}" +runroot rpm \ + -Uvv /not_an.rpm ], [2], [ignore], diff --git a/tests/rpmvercmp.at b/tests/rpmvercmp.at index c705e45..bc32686 100644 --- a/tests/rpmvercmp.at +++ b/tests/rpmvercmp.at @@ -3,7 +3,7 @@ m4_define([RPMVERCMP],[ AT_SETUP([rpmvercmp($1, $2) = $3]) AT_KEYWORDS([vercmp]) -AT_CHECK([run rpm --eval '%{lua: print(rpm.vercmp("$1", "$2"))}'], [0], [$3 +AT_CHECK([runroot rpm --eval '%{lua: print(rpm.vercmp("$1", "$2"))}'], [0], [$3 ], []) AT_CLEANUP ]) -- 2.7.4