##// END OF EJS Templates
run-tests: avoid duplicate code in vlog()
Gregory Szorc -
r21535:ab7e224b default
parent child Browse files
Show More
@@ -295,17 +295,17 b' def getdiff(expected, output, ref, err):'
295 295
296 296 verbose = False
297 297 def vlog(*msg):
298 if verbose is not False:
299 iolock.acquire()
300 if verbose:
301 print verbose,
302 for m in msg:
303 print m,
304 print
305 sys.stdout.flush()
306 iolock.release()
298 """Log only when in verbose mode."""
299 if verbose is False:
300 return
301
302 return log(*msg)
307 303
308 304 def log(*msg):
305 """Log something to stdout.
306
307 Arguments are strings to print.
308 """
309 309 iolock.acquire()
310 310 if verbose:
311 311 print verbose,
General Comments 0
You need to be logged in to leave comments. Login now