Mercurial > hgsubversion
changeset 148:0c5f6420a8b5
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.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 20 Dec 2008 19:13:46 -0600 |
parents | 22162380c4b9 |
children | 04800fda7af5 |
files | tests/test_util.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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