Commit e23e2512 authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: less noisy "currently running" message

parent c328c78a
...@@ -18,10 +18,14 @@ util.BUFFER_OUTPUT = NWORKERS != 1 ...@@ -18,10 +18,14 @@ util.BUFFER_OUTPUT = NWORKERS != 1
def info(): def info():
lastmsg = None
while True: while True:
gevent.sleep(10, ref=False) gevent.sleep(10, ref=False)
if pool: if pool:
util.log('# Currently running: %s: %s', len(pool), ', '.join(x.name for x in pool)) msg = '# Currently running: %s: %s' % (len(pool), ', '.join(x.name for x in pool))
if msg != lastmsg:
lastmsg = msg
util.log(msg)
def spawn(*args, **kwargs): def spawn(*args, **kwargs):
...@@ -48,7 +52,7 @@ def main(): ...@@ -48,7 +52,7 @@ def main():
# we therefore will retry them sequentially # we therefore will retry them sequentially
failed[name] = [cmd, kwargs, 'AssertionError' in (result.output or '')] failed[name] = [cmd, kwargs, 'AssertionError' in (result.output or '')]
if NWORKERS: if NWORKERS > 1:
gevent.spawn(info) gevent.spawn(info)
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment