tests/run-tests.py
branchstable
changeset 1088 e2d5315a6e38
parent 1086 a2e8ccb65224
child 1090 e7e4ca624772
equal deleted inserted replaced
1086:a2e8ccb65224 1088:e2d5315a6e38
  1244             # or "--tmpdir=$HOME".
  1244             # or "--tmpdir=$HOME".
  1245             #vlog("# Removing temp dir", tmpdir)
  1245             #vlog("# Removing temp dir", tmpdir)
  1246             #shutil.rmtree(tmpdir)
  1246             #shutil.rmtree(tmpdir)
  1247         os.makedirs(tmpdir)
  1247         os.makedirs(tmpdir)
  1248     else:
  1248     else:
  1249         tmpdir = tempfile.mkdtemp('', 'hgtests.')
  1249         d = None
       
  1250         if os.name == 'nt':
       
  1251             # without this, we get the default temp dir location, but
       
  1252             # in all lowercase, which causes troubles with paths (issue3490)
       
  1253             d = os.getenv('TMP')
       
  1254         tmpdir = tempfile.mkdtemp('', 'hgtests.', d)
  1250     HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir)
  1255     HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir)
  1251     DAEMON_PIDS = None
  1256     DAEMON_PIDS = None
  1252     HGRCPATH = None
  1257     HGRCPATH = None
  1253 
  1258 
  1254     os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
  1259     os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'