tests: set HOME to the test temp dir (issue2707) stable
authorIdan Kamara <idankk86@gmail.com>
Fri, 25 Mar 2011 22:15:37 +0200
branchstable
changeset 895 1a9cd0b534a0
parent 894 2061f728babf
child 896 3ed02605e0f2
child 897 2ffafb688274
tests: set HOME to the test temp dir (issue2707) [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Mon Mar 14 23:11:14 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)