Unverified Commit 24335d49 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[runner/launch] propagate the error (#854)


Co-authored-by: default avatarJeff Rasley <jerasley@microsoft.com>
parent a75d971b
...@@ -359,6 +359,12 @@ def main(args=None): ...@@ -359,6 +359,12 @@ def main(args=None):
result = subprocess.Popen(cmd, env=env) result = subprocess.Popen(cmd, env=env)
result.wait() result.wait()
# In case of failure must propagate the error-condition back to the caller (usually shell). The
# actual error and traceback should have been printed in the subprocess, so in order to avoid
# unnecessary noise we just quietly exit here with the same code as the subprocess
if result.returncode > 0:
sys.exit(result.returncode)
if __name__ == "__main__": if __name__ == "__main__":
main() main()
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