]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tests: use the handy dandy TestCase.mktemp() function from trial to give unique and...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 30 Jul 2008 22:49:20 +0000 (15:49 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 30 Jul 2008 22:49:20 +0000 (15:49 -0700)
src/allmydata/test/test_system.py

index 740717661731a403ecf39b75c7cc7ddcd922e6db..17e5bf8cd7c12283b4bf0ecd3d008849fe6d8943 100644 (file)
@@ -1709,7 +1709,9 @@ class SystemTest(SystemTestMixin, unittest.TestCase):
 
 class Checker(SystemTestMixin, unittest.TestCase):
     def setUp(self):
-        self.basedir = "system/SystemTest/Checker"
+        # Set self.basedir to a temp dir which has the name of the current test method in its
+        # name.
+        self.basedir = self.mktemp()
         TEST_DATA="\x02"*1000
 
         d = defer.maybeDeferred(SystemTestMixin.setUp, self)