changeset 14018:7ba2c728cf32

run-tests: add iolock to vlog
author Matt Mackall <mpm@selenic.com>
date Mon, 25 Apr 2011 16:17:08 -0500
parents 19a7b48446e3
children fbbd5f91d5e1
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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