run-tests: add iolock to vlog
authorMatt Mackall <mpm@selenic.com>
Mon, 25 Apr 2011 16:17:08 -0500
changeset 14018 7ba2c728cf32
parent 14017 19a7b48446e3
child 14019 fbbd5f91d5e1
run-tests: add iolock to vlog
tests/run-tests.py
--- a/tests/run-tests.py	Tue Apr 26 21:22:14 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