# HG changeset patch # User Augie Fackler # Date 1229822026 21600 # Node ID 0c5f6420a8b554b0c876fd00f7f81fd7c52365e6 # Parent 22162380c4b96c38ce0d39d63d167fa3b6550ca4 tests: Add an environment variable (HGSUBVERSION_TEST_TEMP) which allows specification of where temporary repositories (both hg and svn) should be created. Set it to a RAM disk to make the tests run faster. diff --git a/tests/test_util.py b/tests/test_util.py --- a/tests/test_util.py +++ b/tests/test_util.py @@ -90,7 +90,9 @@ class MockUI(object): class TestBase(unittest.TestCase): def setUp(self): self.oldwd = os.getcwd() - self.tmpdir = tempfile.mkdtemp('svnwrap_test') + self.tmpdir = tempfile.mkdtemp( + 'svnwrap_test', dir=os.environ.get('HGSUBVERSION_TEST_TEMP', None)) + self.repo_path = '%s/testrepo' % self.tmpdir self.wc_path = '%s/testrepo_wc' % self.tmpdir self._real_ui = ui.ui