tests/run-tests.py
changeset 35488 4f5596e5e311
parent 35450 e31773898197
child 35489 212a6e9aecb0
equal deleted inserted replaced
35487:bf556bd2f589 35488:4f5596e5e311
  2402                 # HGTMP inside tmpdir; now HGTMP is tmpdir.  So fail if
  2402                 # HGTMP inside tmpdir; now HGTMP is tmpdir.  So fail if
  2403                 # tmpdir already exists.
  2403                 # tmpdir already exists.
  2404                 print("error: temp dir %r already exists" % tmpdir)
  2404                 print("error: temp dir %r already exists" % tmpdir)
  2405                 return 1
  2405                 return 1
  2406 
  2406 
  2407                 # Automatically removing tmpdir sounds convenient, but could
       
  2408                 # really annoy anyone in the habit of using "--tmpdir=/tmp"
       
  2409                 # or "--tmpdir=$HOME".
       
  2410                 #vlog("# Removing temp dir", tmpdir)
       
  2411                 #shutil.rmtree(tmpdir)
       
  2412             os.makedirs(tmpdir)
  2407             os.makedirs(tmpdir)
  2413         else:
  2408         else:
  2414             d = None
  2409             d = None
  2415             if os.name == 'nt':
  2410             if os.name == 'nt':
  2416                 # without this, we get the default temp dir location, but
  2411                 # without this, we get the default temp dir location, but