Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
bbb62f29
Unverified
Commit
bbb62f29
authored
Jul 25, 2022
by
Yih-Dar
Committed by
GitHub
Jul 25, 2022
Browse files
Skip passes report for `--make-reports` (#18250)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
7e44226f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/transformers/testing_utils.py
src/transformers/testing_utils.py
+7
-3
No files found.
src/transformers/testing_utils.py
View file @
bbb62f29
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment