Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/pmtest.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/pmtest.py
parent9f57921467ea368be96ffc09c8c35e9acfcc41ed (diff)
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/pmtest.py')
-rwxr-xr-xpactest/pmtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pactest/pmtest.py b/pactest/pmtest.py
index f31563b1..39f4deab 100755
--- a/pactest/pmtest.py
+++ b/pactest/pmtest.py
@@ -95,7 +95,7 @@ class pmtest:
if os.path.isfile(self.name):
execfile(self.name)
else:
- err("file %s does not exist!" % self.name)
+ raise IOerror("file %s does not exist!" % self.name)
def generate(self):
"""
@@ -268,6 +268,6 @@ class pmtest:
if __name__ == "__main__":
- test = pmtest("test1", "./root")
- print test
+ pass
+
# vim: set ts=4 sw=4 et: