From 3aceb6be1e797e50ed83ae3fd131a58906930c0c Mon Sep 17 00:00:00 2001 From: nejucomo <nejucomo@gmail.com> Date: Mon, 28 Jan 2008 22:42:28 -0700 Subject: [PATCH] tahoe_fuse.py: system test: Distinguish between TestFailures and unexpected exceptions during testing (and fix a typo). --- contrib/fuse/runtests.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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): -- 2.45.2