diff --git a/test/fuzz/test_runner.py b/test/fuzz/test_runner.py index 9917eca75ae..e87977edfc2 100755 --- a/test/fuzz/test_runner.py +++ b/test/fuzz/test_runner.py @@ -371,10 +371,6 @@ def job(t, args): for future in as_completed(jobs): output, result, target = future.result() logging.debug(output) - if using_libfuzzer: - done_stat = [l for l in output.splitlines() if "DONE" in l] - assert len(done_stat) == 1 - stats.append((target, done_stat[0])) try: result.check_returncode() except subprocess.CalledProcessError as e: @@ -382,8 +378,12 @@ def job(t, args): logging.info(e.stdout) if e.stderr: logging.info(e.stderr) - logging.info(f"Target {result.args} failed with exit code {e.returncode}") + logging.info(f"⚠️ Failure generated from target with exit code {e.returncode}: {result.args}") sys.exit(1) + if using_libfuzzer: + done_stat = [l for l in output.splitlines() if "DONE" in l] + assert len(done_stat) == 1 + stats.append((target, done_stat[0])) if using_libfuzzer: print("Summary:")