##// END OF EJS Templates
run-tests.py: skipped tests shouldn't change working directory
Mads Kiilerich -
r10406:6586a688 default
parent child Browse files
Show More
@@ -522,18 +522,11 b' def runone(options, test, skips, fails):'
522 522 hgrc.write('appendpid=True\n')
523 523 hgrc.close()
524 524
525 err = os.path.join(TESTDIR, test+".err")
525 testpath = os.path.join(TESTDIR, test)
526 526 ref = os.path.join(TESTDIR, test+".out")
527 testpath = os.path.join(TESTDIR, test)
528
527 err = os.path.join(TESTDIR, test+".err")
529 528 if os.path.exists(err):
530 529 os.remove(err) # Remove any previous output files
531
532 # Make a tmp subdirectory to work in
533 tmpd = os.path.join(HGTMP, test)
534 os.mkdir(tmpd)
535 os.chdir(tmpd)
536
537 530 try:
538 531 tf = open(testpath)
539 532 firstline = tf.readline().rstrip()
@@ -563,6 +556,11 b' def runone(options, test, skips, fails):'
563 556 return skip("not executable")
564 557 cmd = '"%s"' % testpath
565 558
559 # Make a tmp subdirectory to work in
560 tmpd = os.path.join(HGTMP, test)
561 os.mkdir(tmpd)
562 os.chdir(tmpd)
563
566 564 if options.timeout > 0:
567 565 signal.alarm(options.timeout)
568 566
General Comments 0
You need to be logged in to leave comments. Login now