avocado.core.runner: Restore behavior of the 'Change the throbber colors' commit

On commit d2d6623a, ldoktor
changes the throbber color. This commit reverts the behavior
to the one before the Ctrl+C reversion, since that'll be
better in terms of bisectability.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 88848a56
......@@ -180,7 +180,7 @@ class TestRunner(object):
if not test_state['running']:
break
else:
self.job.result_proxy.notify_progress(True)
self.job.result_proxy.notify_progress(False)
if test_state['paused']:
msg = test_state['paused_msg']
if msg:
......@@ -188,7 +188,10 @@ class TestRunner(object):
elif proc.is_alive():
if ctrl_c_count == 0:
self.job.result_proxy.notify_progress()
if test_state and not test_state.get('running'):
self.job.result_proxy.notify_progress(False)
else:
self.job.result_proxy.notify_progress(True)
else:
break
except KeyboardInterrupt:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册