From f96bd921509a4a53b09225df73b59de6ef941e69 Mon Sep 17 00:00:00 2001 From: Nicholas Hannah Date: Thu, 7 Jul 2016 11:33:35 +1000 Subject: [PATCH] Keep build output on failed build during testing. #328 --- tools/tests/model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/tests/model.py b/tools/tests/model.py index cd9ed1f01f..95298ff21b 100644 --- a/tools/tests/model.py +++ b/tools/tests/model.py @@ -109,6 +109,7 @@ def build_model(self, compiler='gnu', build='REPRO', memory_type='dynamic'): output = sp.check_output(command, stderr=sp.STDOUT, shell=True) except sp.CalledProcessError as e: ret = e.returncode + output = e.output print(e.output, file=sys.stderr) finally: os.chdir(saved_path)