[PATCH 1 of 2] tests: set HOME to the test temp dir (issue2707)

Idan Kamara idankk86 at gmail.com
Fri Mar 25 15:39:30 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1301084137 -7200
# Node ID ab1678274c27f1a84c4b47cb2f53404a0d00e0bf
# Parent  3740792dbe518e0bd358dcfcb72757ce182b8898
tests: set HOME to the test temp dir (issue2707)

diff -r 3740792dbe51 -r ab1678274c27 tests/run-tests.py
--- a/tests/run-tests.py	Fri Mar 25 16:46:19 2011 +0100
+++ b/tests/run-tests.py	Fri Mar 25 22:15:37 2011 +0200
@@ -694,7 +694,9 @@
         runner = shtest
 
     # Make a tmp subdirectory to work in
-    testtmp = os.environ["TESTTMP"] = os.path.join(HGTMP, test)
+    testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \
+        os.path.join(HGTMP, test)
+
     os.mkdir(testtmp)
     os.chdir(testtmp)
 


More information about the Mercurial-devel mailing list