"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "c66ffa3a17046b9aec4398f2aee3b8931435d0b7"
Unverified Commit bbb62f29 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

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


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 7e44226f
...@@ -1386,9 +1386,13 @@ def pytest_terminal_summary_main(tr, id): ...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment