mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
Rework fakechroot checking
Do the checks in the tests that need it, and get rid of some of the cluttered output when it is not available (one line per test run). Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
ce3d70aa99
commit
927ce2b7a5
@ -197,9 +197,7 @@ class pmtest:
|
|||||||
cmd.append("fakeroot")
|
cmd.append("fakeroot")
|
||||||
|
|
||||||
fakechroot = which("fakechroot")
|
fakechroot = which("fakechroot")
|
||||||
if not fakechroot:
|
if fakechroot:
|
||||||
print "WARNING: fakechroot not found, scriptlet tests WILL fail!!!"
|
|
||||||
else:
|
|
||||||
cmd.append("fakechroot")
|
cmd.append("fakechroot")
|
||||||
|
|
||||||
if pacman["gdb"]:
|
if pacman["gdb"]:
|
||||||
|
@ -14,3 +14,7 @@ self.args = "--debug -U %s" % p1.filename()
|
|||||||
self.addrule("PACMAN_RETCODE=0")
|
self.addrule("PACMAN_RETCODE=0")
|
||||||
self.addrule("PACMAN_OUTPUT=" + pre)
|
self.addrule("PACMAN_OUTPUT=" + pre)
|
||||||
self.addrule("PACMAN_OUTPUT=" + post)
|
self.addrule("PACMAN_OUTPUT=" + post)
|
||||||
|
|
||||||
|
fakechroot = which("fakechroot")
|
||||||
|
if not fakechroot:
|
||||||
|
self.expectfailure = True
|
||||||
|
@ -14,3 +14,7 @@ self.args = "--debug -R %s" % p1.name
|
|||||||
self.addrule("PACMAN_RETCODE=0")
|
self.addrule("PACMAN_RETCODE=0")
|
||||||
self.addrule("PACMAN_OUTPUT=" + pre)
|
self.addrule("PACMAN_OUTPUT=" + pre)
|
||||||
self.addrule("PACMAN_OUTPUT=" + post)
|
self.addrule("PACMAN_OUTPUT=" + post)
|
||||||
|
|
||||||
|
fakechroot = which("fakechroot")
|
||||||
|
if not fakechroot:
|
||||||
|
self.expectfailure = True
|
||||||
|
Loading…
Reference in New Issue
Block a user