提交 b30f61c9 编写于 作者: L Lukáš Doktor

avocado.plugins.xunit: Add WARN status as PASS

xunit doesn't support WARN test restul and currently is just ignored.
This commit maps WARN test results as PASS.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 496f4550
......@@ -184,7 +184,7 @@ class xUnitTestResult(TestResult):
:type state: dict
"""
TestResult.end_test(self, state)
if state['status'] == 'PASS':
if state['status'] in ('PASS', 'WARN'):
self.xml.add_success(state)
elif state['status'] == 'TEST_NA':
self.xml.add_skip(state)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册