junitxml: reverse the if/else logic for failure appending

This commit is contained in:
Ronny Pfannschmidt 2015-09-29 22:30:22 +02:00
parent 02f5defd89
commit 2a31df072b
1 changed files with 3 additions and 3 deletions

View File

@ -262,10 +262,10 @@ class LogXML(object):
self.append_pass(report)
elif report.failed:
self._opentestcase(report)
if report.when != "call":
self.append_error(report)
else:
if report.when == "call":
self.append_failure(report)
else:
self.append_error(report)
elif report.skipped:
self._opentestcase(report)
self.append_skipped(report)