mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +00:00
tahoe_fuse.py: system test: Distinguish between TestFailures and unexpected exceptions during testing (and fix a typo).
This commit is contained in:
parent
7421d99f18
commit
3aceb6be1e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user