# HG changeset patch # User Boris Feld <boris.feld@octobus.net> # Date 1524503469 -3600 # Mon Apr 23 18:11:09 2018 +0100 # Node ID ee1156b7a59d9d6cb5209a2dca7f84259e33b332 # Parent 58843268916b618407764aa7994e95b63cb62196 Print process output in case of bad return code to ease debugging diff --git a/benchmarks/utils.py b/benchmarks/utils.py --- a/benchmarks/utils.py +++ b/benchmarks/utils.py @@ -1,3 +1,4 @@ +from __future__ import print_function import os import os.path import re @@ -237,6 +238,7 @@ env=self.environ) except subprocess.CalledProcessError as exc: if exc.returncode != expected_return_code: + print(exc.output) raise else: if expected_return_code != 0: