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
971c638e
"vscode:/vscode.git/clone" did not exist on "b03872aae06af2b723f019dbfb85857df288dd67"
Unverified
Commit
971c638e
authored
Nov 03, 2020
by
Stas Bekman
Committed by
GitHub
Nov 03, 2020
Browse files
forward the worker stderr to the parent process (#8262)
parent
eb6313e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/transformers/testing_utils.py
src/transformers/testing_utils.py
+3
-1
No files found.
src/transformers/testing_utils.py
View file @
971c638e
...
...
@@ -896,8 +896,10 @@ def execute_subprocess_async(cmd, env=None, stdin=None, timeout=180, quiet=False
cmd_str
=
" "
.
join
(
cmd
)
if
result
.
returncode
>
0
:
stderr
=
"
\n
"
.
join
(
result
.
stderr
)
raise
RuntimeError
(
f
"'
{
cmd_str
}
' failed with returncode
{
result
.
returncode
}
- see the `stderr:` messages from above for details."
f
"'
{
cmd_str
}
' failed with returncode
{
result
.
returncode
}
\n\n
"
f
"The combined stderr from workers follows:
\n
{
stderr
}
"
)
# check that the subprocess actually did run and produced some output, should the test rely on
...
...
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