junitxml: reverse the if/else logic for failure appending
This commit is contained in:
parent
02f5defd89
commit
2a31df072b
|
@ -262,10 +262,10 @@ class LogXML(object):
|
||||||
self.append_pass(report)
|
self.append_pass(report)
|
||||||
elif report.failed:
|
elif report.failed:
|
||||||
self._opentestcase(report)
|
self._opentestcase(report)
|
||||||
if report.when != "call":
|
if report.when == "call":
|
||||||
self.append_error(report)
|
|
||||||
else:
|
|
||||||
self.append_failure(report)
|
self.append_failure(report)
|
||||||
|
else:
|
||||||
|
self.append_error(report)
|
||||||
elif report.skipped:
|
elif report.skipped:
|
||||||
self._opentestcase(report)
|
self._opentestcase(report)
|
||||||
self.append_skipped(report)
|
self.append_skipped(report)
|
||||||
|
|
Loading…
Reference in New Issue