tests/run-tests.py
changeset 896 3ed02605e0f2
parent 895 1a9cd0b534a0
child 899 97ec5d659039
equal deleted inserted replaced
893:24924dfb8326 896:3ed02605e0f2
   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)