changeset 13764:8ed67e44c71c

tests: set HOME to the test temp dir (issue2707)
author Idan Kamara <idankk86@gmail.com>
date Fri, 25 Mar 2011 22:15:37 +0200
parents 7a73c406c0fd
children 7fc79055a62b
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)