The error reporting is confusing, because right now it prints:
https://cirrus-ci.com/task/4846031060336640?logs=ci#L4931
0...
1Traceback (most recent call last):
2 File "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/test/fuzz/test_runner.py", line 411, in <module>
3 main()
4 File "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/test/fuzz/test_runner.py", line 199, in main
5 run_once(
6 File "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/test/fuzz/test_runner.py", line 376, in run_once
7 assert len(done_stat) == 1
8 ^^^^^^^^^^^^^^^^^^^
9AssertionError
This is harmless, but confusing.
Fix it by collecting statistics only when the program has not aborted. (Can be reviewed with --color-moved=dimmed-zebra
)
Also, reword the error message to align it with error messages in other test_runners in this repo.