avocado.plugins.jsonresult: Extend json format

Add the fields 'logdir', 'logfile' and 'fail_reason'.
Those fields will be necessary to expand the HTML
reports to correctly exhibit failure information
from remotely run tests.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 2daaa0a9
......@@ -61,6 +61,9 @@ class JSONTestResult(TestResult):
'time': state['time_elapsed'],
'status': state['status'],
'whiteboard': state['whiteboard'],
'logdir': state['logdir'],
'logfile': state['logfile'],
'fail_reason': str(state['fail_reason'])
}
self.json['tests'].append(t)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册