# HG changeset patch # User Matt Mackall # Date 1303766228 18000 # Node ID 3071ec5d085ca85eb0ae657a795c68e189b72890 # Parent dd5c50a018b00d663cd7396ca47e32efa0d7deb9 run-tests: add iolock to vlog [ original upstream message ] diff -r dd5c50a018b0 -r 3071ec5d085c tests/run-tests.py --- a/tests/run-tests.py Mon Apr 25 18:42:31 2011 +0200 +++ b/tests/run-tests.py Mon Apr 25 16:17:08 2011 -0500 @@ -203,12 +203,14 @@ else: pid = None def vlog(*msg): + iolock.acquire() if pid: print pid, for m in msg: print m, print sys.stdout.flush() + iolock.release() else: vlog = lambda *msg: None