Skip to content
Snippets Groups Projects
Verified Commit 8a579a4b authored by Rico Bergmann's avatar Rico Bergmann
Browse files

Print stdout and stderr if tool failed execution

This only applies if the executed tool did return an error exit code.
Failure due to timeouts are not considered.
parent a49324d3
Branches
No related tags found
No related merge requests found
...@@ -73,6 +73,10 @@ def benchmark(conf): ...@@ -73,6 +73,10 @@ def benchmark(conf):
file.write(output) file.write(output)
except CalledProcessError as e: except CalledProcessError as e:
print("Program exited with error") print("Program exited with error")
print('stdout:')
print(e.output)
print('stderr:')
print(e.stderr)
except subprocess.TimeoutExpired as e: except subprocess.TimeoutExpired as e:
print("Program reached the timeout set ({0} seconds). The command we executed was '{1}'".format(e.timeout, e.cmd)) print("Program reached the timeout set ({0} seconds). The command we executed was '{1}'".format(e.timeout, e.cmd))
failed_tools.add(tool) failed_tools.add(tool)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment