diff options
Diffstat (limited to 'testit')
-rwxr-xr-x | testit | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -92,7 +92,16 @@ class TwoHardlinksToSameContent(TestCase): def setUp(self): self.create('foo', 'foo') self.hardlink('foo', 'bar') - self.identical = [] + self.identical = ['foo', 'bar'] + + +class TwoHardlinksToSameContentPlusSecondIdenticalCopy(TestCase): + + def setUp(self): + self.create('foo', 'foo') + self.hardlink('foo', 'bar') + self.create('foobar', 'foo') + self.identical = ['foo', 'bar', 'foobar'] class Symlink(TestCase): @@ -110,12 +119,17 @@ def main(): issubclass(o, TestCase) and o != TestCase] for klass in klasses: - test = klass() - test.setUp() - test.test() - test.tearDown() - test.cleanup() - print "Test PASS: %s" % (klass.__name__) + try: + test = klass() + test.setUp() + test.test() + test.tearDown() + test.cleanup() + except Exception, e: + print 'Test FAIL: %s' % klass.__name__ + raise e + else: + print "Test PASS: %s" % klass.__name__ if __name__ == '__main__': |