Fix for issue #5430 - junit-xml: logs are not passed to junit report for tests failed not in a teardown phase

This commit is contained in:
Claudio Madotto
2019-11-24 15:20:02 +01:00
parent 69ad2026f6
commit b66dc80008
2 changed files with 43 additions and 0 deletions

View File

@@ -591,6 +591,7 @@ class LogXML:
if report.when == "call":
reporter.append_failure(report)
self.open_reports.append(report)
reporter.write_captured_output(report)
else:
reporter.append_error(report)
elif report.skipped: