##// END OF EJS Templates
run-tests: fix some missing i/o locks
Matt Mackall -
r14003:ba734ff5 default
parent child Browse files
Show More
@@ -667,16 +667,22 b' def runone(options, test):'
667 667 if not options.verbose:
668 668 result('s', (test, msg))
669 669 else:
670 iolock.acquire()
670 671 print "\nSkipping %s: %s" % (testpath, msg)
672 iolock.release()
671 673 return None
672 674
673 675 def fail(msg, ret):
674 676 if not options.nodiff:
677 iolock.acquire()
675 678 print "\nERROR: %s %s" % (testpath, msg)
679 iolock.release()
676 680 if (not ret and options.interactive
677 681 and os.path.exists(testpath + ".err")):
682 iolock.acquire()
678 683 print "Accept this change? [n] ",
679 684 answer = sys.stdin.readline().strip()
685 iolock.release()
680 686 if answer.lower() in "y yes".split():
681 687 if test.endswith(".t"):
682 688 rename(testpath + ".err", testpath)
General Comments 0
You need to be logged in to leave comments. Login now