summaryrefslogtreecommitdiffstats
path: root/pactest/pmtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'pactest/pmtest.py')
-rwxr-xr-xpactest/pmtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pactest/pmtest.py b/pactest/pmtest.py
index 457028db..be36914b 100755
--- a/pactest/pmtest.py
+++ b/pactest/pmtest.py
@@ -189,6 +189,13 @@ class pmtest:
cmd = [""]
if os.geteuid() != 0:
cmd.append("fakeroot")
+
+ fakechroot = which("fakechroot")
+ if not fakechroot:
+ print "WARNING: fakechroot not found, scriptlet tests WILL fail!!!"
+ else:
+ cmd.append("fakechroot")
+
if pacman["gdb"]:
cmd.append("libtool gdb --args")
if pacman["valgrind"]: