diff options
-rwxr-xr-x | pactest/pmtest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pactest/pmtest.py b/pactest/pmtest.py index e0b3fd44..476eb27a 100755 --- a/pactest/pmtest.py +++ b/pactest/pmtest.py @@ -188,7 +188,9 @@ class pmtest: print "==> Running test" vprint("\tpacman %s" % self.args) - cmd = ["fakeroot"] + cmd = [""] + if os.geteuid() != 0: + cmd.append("fakeroot") if pacman["gdb"]: cmd.append("libtool gdb --args") if pacman["valgrind"]: |