diff options
| author | MarcoFalke <[email protected]> | 2019-06-18 16:31:17 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-06-18 16:30:36 -0400 |
| commit | fa35c4239f9b5a35ed46d0af8472c74610cba5c4 (patch) | |
| tree | 7f00a1ab352ff2e263a52464351617a17e45d952 /test/fuzz/test_runner.py | |
| parent | Merge #16112: util: Log early messages (diff) | |
| download | discoin-fa35c4239f9b5a35ed46d0af8472c74610cba5c4.tar.xz discoin-fa35c4239f9b5a35ed46d0af8472c74610cba5c4.zip | |
test: Log output even if fuzzer failed
Diffstat (limited to 'test/fuzz/test_runner.py')
| -rwxr-xr-x | test/fuzz/test_runner.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/fuzz/test_runner.py b/test/fuzz/test_runner.py index 1869f7175..f19cf924d 100755 --- a/test/fuzz/test_runner.py +++ b/test/fuzz/test_runner.py @@ -106,8 +106,10 @@ def run_once(*, corpus, test_list, build_dir, export_coverage): os.path.join(corpus, t), ] logging.debug('Run {} with args {}'.format(t, args)) - output = subprocess.run(args, check=True, stderr=subprocess.PIPE, universal_newlines=True).stderr + result = subprocess.run(args, stderr=subprocess.PIPE, universal_newlines=True) + output = result.stderr logging.debug('Output: {}'.format(output)) + result.check_returncode() if not export_coverage: continue for l in output.splitlines(): |