tahoe_fuse.py: system test: Distinguish between TestFailures and unexpected exceptions during testing (and fix a typo).

This commit is contained in:
nejucomo 2008-01-28 22:42:28 -07:00
parent 7421d99f18
commit 3aceb6be1e

View File

@ -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):