Skip to content

Commit fa35c42

Browse files
author
MarcoFalke
committed
test: Log output even if fuzzer failed
1 parent 0853d8d commit fa35c42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/fuzz/test_runner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ def run_once(*, corpus, test_list, build_dir, export_coverage):
106106
os.path.join(corpus, t),
107107
]
108108
logging.debug('Run {} with args {}'.format(t, args))
109-
output = subprocess.run(args, check=True, stderr=subprocess.PIPE, universal_newlines=True).stderr
109+
result = subprocess.run(args, stderr=subprocess.PIPE, universal_newlines=True)
110+
output = result.stderr
110111
logging.debug('Output: {}'.format(output))
112+
result.check_returncode()
111113
if not export_coverage:
112114
continue
113115
for l in output.splitlines():

0 commit comments

Comments
 (0)