From: nejucomo Date: Tue, 29 Jan 2008 05:42:28 +0000 (-0700) Subject: tahoe_fuse.py: system test: Distinguish between TestFailures and unexpected exception... X-Git-Tag: allmydata-tahoe-0.8.0~170 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/frontends/status?a=commitdiff_plain;h=3aceb6be1e797e50ed83ae3fd131a58906930c0c;p=tahoe-lafs%2Ftahoe-lafs.git tahoe_fuse.py: system test: Distinguish between TestFailures and unexpected exceptions during testing (and fix a typo). --- diff --git a/contrib/fuse/runtests.py b/contrib/fuse/runtests.py index ff7d3cf2..d38c2b82 100644 --- a/contrib/fuse/runtests.py +++ b/contrib/fuse/runtests.py @@ -251,12 +251,15 @@ class SystemTest (object): method = getattr(self, name) method(mountpoint) print 'Test succeeded.' - except: - print 'Test failed (details follow):' - traceback.print_exc() + except self.TestFailure, f: + print f failures += 1 + except: + print 'Error in test code... Cleaning up.' + raise + + print '\n*** Testing complete: %d failed out of %d.' % (failures, total) - print '\n*** Testing complete: %d failured out of %d.' % (failures, total) # Tests: def test_00_empty_directory_listing(self, mountpoint):