Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/tests/scriptlet002.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-08-31 18:38:23 -0500
committerDan McGee <dan@archlinux.org>2008-10-12 21:29:04 -0500
commit927ce2b7a52360507da3d81804520dbba4a9700d (patch)
treeb9fcadf4d60f3c7b6659eaa8de58e8eac9916fee /pactest/tests/scriptlet002.py
parentce3d70aa99ab86d49756d1858580750f2f13dd9e (diff)
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>
Diffstat (limited to 'pactest/tests/scriptlet002.py')
-rw-r--r--pactest/tests/scriptlet002.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pactest/tests/scriptlet002.py b/pactest/tests/scriptlet002.py
index dd792b82..cc316a10 100644
--- a/pactest/tests/scriptlet002.py
+++ b/pactest/tests/scriptlet002.py
@@ -14,3 +14,7 @@ self.args = "--debug -R %s" % p1.name
self.addrule("PACMAN_RETCODE=0")
self.addrule("PACMAN_OUTPUT=" + pre)
self.addrule("PACMAN_OUTPUT=" + post)
+
+fakechroot = which("fakechroot")
+if not fakechroot:
+ self.expectfailure = True