mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
Try to preserve the working directory
This commit is contained in:
parent
1af71e6ba3
commit
74420fb764
@ -5,6 +5,7 @@ import subprocess
|
||||
from os.path import join
|
||||
from mock import patch
|
||||
from StringIO import StringIO
|
||||
from functools import partial
|
||||
|
||||
from twisted.trial import unittest
|
||||
from allmydata.scripts import runner
|
||||
@ -217,6 +218,7 @@ class RunTests(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
d = super(RunTests, self).setUp()
|
||||
self.addCleanup(partial(os.chdir, os.getcwd()))
|
||||
self.node_dir = self.mktemp()
|
||||
os.mkdir(self.node_dir)
|
||||
return d
|
||||
|
Loading…
x
Reference in New Issue
Block a user