Skip to content

Commit

Permalink
test_runner: Readable output if create_cache.py fails
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ryanofsky committed Jan 19, 2018
1 parent f4c942e commit ac96e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/test_runner.py
Expand Up @@ -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)
Expand Down

0 comments on commit ac96e78

Please sign in to comment.