forward the worker stderr to the parent process (#8262)

This commit is contained in:
Stas Bekman 2020-11-03 09:04:53 -08:00 committed by GitHub
parent eb6313e823
commit 971c638ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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