tests: set HOME to the test temp dir (issue2707)
authorIdan Kamara <idankk86@gmail.com>
Fri, 25 Mar 2011 22:15:37 +0200
changeset 13764 8ed67e44c71c
parent 13763 7a73c406c0fd
child 13765 7fc79055a62b
tests: set HOME to the test temp dir (issue2707)
tests/run-tests.py
--- a/tests/run-tests.py	Fri Mar 25 15:03:53 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)