aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-01-03 17:43:27 +0100
committerMichał Górny <mgorny@gentoo.org>2012-01-03 17:43:27 +0100
commit395b59ef8051775eeaa3518cf2928ffd9d2cf92e (patch)
tree0edd892f9799a74e28fa10fe1978f8dc71e3aec1 /pmstestsuite/cli.py
parentFix inherits in test cases. (diff)
downloadpms-test-suite-395b59ef8051775eeaa3518cf2928ffd9d2cf92e.tar.gz
pms-test-suite-395b59ef8051775eeaa3518cf2928ffd9d2cf92e.tar.bz2
pms-test-suite-395b59ef8051775eeaa3518cf2928ffd9d2cf92e.zip
Reraise test case exceptions neatly.
Diffstat (limited to 'pmstestsuite/cli.py')
-rw-r--r--pmstestsuite/cli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pmstestsuite/cli.py b/pmstestsuite/cli.py
index ac8dd2e..a0abf02 100644
--- a/pmstestsuite/cli.py
+++ b/pmstestsuite/cli.py
@@ -198,7 +198,9 @@ class PMSTestSuiteCLI(object):
outc = '.'
elif tr.exception:
outc = 'E'
- raise tr.exception
+ self.exception = tr.exception
+ self.loop.quit()
+ return
else:
outc = 'F'
print(outc, end='')