Avoid duplicating system-out and system-error tags

This commit is contained in:
Claudio Madotto 2019-11-24 16:33:17 +01:00
parent 91b3ff1bb7
commit 31d5cedc6d
1 changed files with 2 additions and 1 deletions

View File

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