提交 8e5eb40b 编写于 作者: L Lucas Meneghel Rodrigues

avocado.core.output: Introduce 'partial' event to View.notify()

And replace the last usage of the .log_ui methods in the
app code.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 7470896a
......@@ -347,7 +347,8 @@ class View(object):
mapping = {'message': self.log_ui_header,
'minor': self.log_ui_minor,
'error': self.log_ui_error,
'warning': self.log_ui_warning}
'warning': self.log_ui_warning,
'partial': self.log_ui_partial}
if msg is not None:
mapping[event](msg)
......
......@@ -220,7 +220,7 @@ class TestRunner(object):
if test_state['paused']:
msg = test_state['paused_msg']
if msg:
self.job.view.log_partial(msg)
self.job.view.notify(event='partial', msg=msg)
except Queue.Empty:
if p.is_alive():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册