run-tests: add iolock to vlog stable
authorMatt Mackall <mpm@selenic.com>
Mon, 25 Apr 2011 16:17:08 -0500
branchstable
changeset 918 3071ec5d085c
parent 916 dd5c50a018b0
child 919 1666a4a68262
run-tests: add iolock to vlog [ original upstream message ]
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