summaryrefslogtreecommitdiff
path: root/pactest/util.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-07-24 22:14:27 -0500
committerDan McGee <dan@archlinux.org>2008-07-24 22:16:29 -0500
commitcf25884e992e9c0dd6e4bf2f7cd4bb3252578bf6 (patch)
tree430b9f5675db96ea803aa52b081547bdedc83efc /pactest/util.py
parent9f57921467ea368be96ffc09c8c35e9acfcc41ed (diff)
downloadpacman-cf25884e992e9c0dd6e4bf2f7cd4bb3252578bf6.tar.xz
pactest: exit with a non-zero error code on unexpected failure
This will allow the return code of pactest to be useful, for such things as use in a git-bisect test script. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/util.py')
-rwxr-xr-xpactest/util.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pactest/util.py b/pactest/util.py
index c6d5a594..db9560fe 100755
--- a/pactest/util.py
+++ b/pactest/util.py
@@ -43,10 +43,6 @@ LOGFILE = "var/log/pactest.log"
verbose = 0
-def err(msg):
- print "error: " + msg
- sys.exit(1)
-
def vprint(msg):
if verbose:
print msg
@@ -273,4 +269,5 @@ def mkdir(dir):
if __name__ == "__main__":
pass
+
# vim: set ts=4 sw=4 et: