aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2018-01-19 13:04:03 -0500
committerRussell Yanofsky <russ@yanofsky.org>2018-01-19 13:04:03 -0500
commitac96e788faa33d9bf52ea0ecefa5e168f5ae326a (patch)
treea552ac09eb321dc313652394b7e42193890d8c98 /test
parentf4c942e3615435c9e5d7ff0cefd935be08768d0c (diff)
test_runner: Readable output if create_cache.py fails
Without this change, create_cache.py process output is shown as a byte() object with \n escapes in a single line that is hard to read.
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/test_runner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py
index 72ad300e7e..b8b6ee98bf 100755
--- a/test/functional/test_runner.py
+++ b/test/functional/test_runner.py
@@ -313,9 +313,9 @@ def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_cove
# Populate cache
try:
subprocess.check_output([tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir])
- except Exception as e:
- print(e.output)
- raise e
+ except subprocess.CalledProcessError as e:
+ sys.stdout.buffer.write(e.output)
+ raise
#Run Tests
job_queue = TestHandler(jobs, tests_dir, tmpdir, test_list, flags)