# HG changeset patch # User Matt Mackall # Date 2011-04-24 22:52:46 # Node ID ba734ff5cadd3cf188bb5b184b9f86c4a95d09de # Parent a738c30d4b18d0f4638837978aa0e0617fab0347 run-tests: fix some missing i/o locks diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -667,16 +667,22 @@ def runone(options, test): if not options.verbose: result('s', (test, msg)) else: + iolock.acquire() print "\nSkipping %s: %s" % (testpath, msg) + iolock.release() return None def fail(msg, ret): if not options.nodiff: + iolock.acquire() print "\nERROR: %s %s" % (testpath, msg) + iolock.release() if (not ret and options.interactive and os.path.exists(testpath + ".err")): + iolock.acquire() print "Accept this change? [n] ", answer = sys.stdin.readline().strip() + iolock.release() if answer.lower() in "y yes".split(): if test.endswith(".t"): rename(testpath + ".err", testpath)