tests/run-tests.py
branchstable
changeset 1088 e2d5315a6e38
parent 1086 a2e8ccb65224
child 1090 e7e4ca624772
--- a/tests/run-tests.py	Fri Jun 01 02:25:12 2012 +0200
+++ b/tests/run-tests.py	Fri Jun 08 15:11:05 2012 +0200
@@ -1246,7 +1246,12 @@
             #shutil.rmtree(tmpdir)
         os.makedirs(tmpdir)
     else:
-        tmpdir = tempfile.mkdtemp('', 'hgtests.')
+        d = None
+        if os.name == 'nt':
+            # without this, we get the default temp dir location, but
+            # in all lowercase, which causes troubles with paths (issue3490)
+            d = os.getenv('TMP')
+        tmpdir = tempfile.mkdtemp('', 'hgtests.', d)
     HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir)
     DAEMON_PIDS = None
     HGRCPATH = None