Switch the two remaining rpm runs under fakechroot
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 1 Apr 2011 14:18:46 +0000 (17:18 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 1 Apr 2011 14:18:46 +0000 (17:18 +0300)
- Everything in the test-suite except rpmbuild execution is now
  performed in the fakechroot environment

tests/rpmi.at
tests/rpmvercmp.at

index ad4d9c9..4d53633 100644 (file)
@@ -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],
index c705e45..bc32686 100644 (file)
@@ -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
 ])