fix double_stdout 2

This commit is contained in:
anb76ru 2022-11-15 22:48:37 +03:00
parent 45b7df32bc
commit 30e39f5031
1 changed files with 2 additions and 1 deletions

View File

@ -560,7 +560,8 @@ class LogXML:
if report.when == "call": # ignore setup/teardown
reporter = self._opentestcase(report)
reporter.append_pass(report)
reporter.write_captured_output(report)
if not self.log_passing_tests:
reporter.write_captured_output(report)
elif report.failed:
if report.when == "teardown":
# The following vars are needed when xdist plugin is used.