HomePhabricator

test_runner: Readable output if create_cache.py fails

Description

test_runner: Readable output if create_cache.py fails

Summary:

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.

Backport of core PR12227
https://github.com/bitcoin/bitcoin/pull/12227/files

Test Plan:
Add the following line:

assert False

to test/functional/create_cache_py just after def run_test(self):.

./test/functional/test_runner.py

The output should be correctly formatted, with multiline text on
multiple lines.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3457

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Jan 19 2018, 18:04
FabienCommitted on Jun 28 2019, 16:43
nakihitoPushed on Jun 28 2019, 17:17
Reviewer
Restricted Project
Differential Revision
D3457: test_runner: Readable output if create_cache.py fails
Parents
rSTAGING1b74487f112e: Fix a typo in functional tests documentation
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/9790, tag: phabricator/base/9787, tag: phabricator/base/9779