Skip passes report for --make-reports (#18250)

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2022-07-25 11:09:23 +02:00
committed by GitHub
parent 7e44226fc7
commit bbb62f2924

View File

@@ -1386,9 +1386,13 @@ def pytest_terminal_summary_main(tr, id):
tr.summary_warnings() # final warnings tr.summary_warnings() # final warnings
tr.reportchars = "wPpsxXEf" # emulate -rA (used in summary_passes() and short_test_summary()) tr.reportchars = "wPpsxXEf" # emulate -rA (used in summary_passes() and short_test_summary())
with open(report_files["passes"], "w") as f:
tr._tw = create_terminal_writer(config, f) # Skip the `passes` report, as it starts to take more than 5 minutes, and sometimes it timeouts on CircleCI if it
tr.summary_passes() # takes > 10 minutes (as this part doesn't generate any output on the terminal).
# (also, it seems there is no useful information in this report, and we rarely need to read it)
# with open(report_files["passes"], "w") as f:
# tr._tw = create_terminal_writer(config, f)
# tr.summary_passes()
with open(report_files["summary_short"], "w") as f: with open(report_files["summary_short"], "w") as f:
tr._tw = create_terminal_writer(config, f) tr._tw = create_terminal_writer(config, f)