From cf25884e992e9c0dd6e4bf2f7cd4bb3252578bf6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 24 Jul 2008 22:14:27 -0500 Subject: 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 --- pactest/pmtest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pactest/pmtest.py') 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: -- cgit v1.2.3-2-g168b