tests/run-tests.py
branchstable
changeset 895 1a9cd0b534a0
parent 882 c3681742c0c7
child 899 97ec5d659039
equal deleted inserted replaced
894:2061f728babf 895:1a9cd0b534a0
   692         if not os.access(testpath, os.X_OK):
   692         if not os.access(testpath, os.X_OK):
   693             return skip("not executable")
   693             return skip("not executable")
   694         runner = shtest
   694         runner = shtest
   695 
   695 
   696     # Make a tmp subdirectory to work in
   696     # Make a tmp subdirectory to work in
   697     testtmp = os.environ["TESTTMP"] = os.path.join(HGTMP, test)
   697     testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \
       
   698         os.path.join(HGTMP, test)
       
   699 
   698     os.mkdir(testtmp)
   700     os.mkdir(testtmp)
   699     os.chdir(testtmp)
   701     os.chdir(testtmp)
   700 
   702 
   701     if options.timeout > 0:
   703     if options.timeout > 0:
   702         signal.alarm(options.timeout)
   704         signal.alarm(options.timeout)