mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-12 16:17:53 +00:00
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.
This commit is contained in:
parent
f4c942e361
commit
ac96e788fa
@ -313,9 +313,9 @@ def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_cove
|
|||||||
# Populate cache
|
# Populate cache
|
||||||
try:
|
try:
|
||||||
subprocess.check_output([tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir])
|
subprocess.check_output([tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir])
|
||||||
except Exception as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(e.output)
|
sys.stdout.buffer.write(e.output)
|
||||||
raise e
|
raise
|
||||||
|
|
||||||
#Run Tests
|
#Run Tests
|
||||||
job_queue = TestHandler(jobs, tests_dir, tmpdir, test_list, flags)
|
job_queue = TestHandler(jobs, tests_dir, tmpdir, test_list, flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user