From dbd1c2397e47dae11edf6bf6efae64e8ce45a909 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Wed, 30 Jul 2008 15:49:20 -0700 Subject: [PATCH] tests: use the handy dandy TestCase.mktemp() function from trial to give unique and nicely named directories for each testcase --- src/allmydata/test/test_system.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index 74071766..17e5bf8c 100644 --- a/src/allmydata/test/test_system.py +++ b/src/allmydata/test/test_system.py @@ -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) -- 2.45.2