Skip to content

Commit

Permalink
Ignore timeout error, and error out only if the fuzzing binary errors…
Browse files Browse the repository at this point in the history
… out
  • Loading branch information
anodar committed Jan 26, 2024
1 parent ee8cc8d commit 14fb850
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/fuzz.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,12 @@ if $run_build; then
fi

if [[ ! -z $test_group ]]; then
timeout "$((60 * duration))" "$binpath"/${test_group}.fuzz -test.run "^$" -test.fuzzcachedir "$fuzzcachepath" -test.fuzz $test_name
timeout "$((60 * duration))" "$binpath"/${test_group}.fuzz -test.run "^$" -test.fuzzcachedir "$fuzzcachepath" -test.fuzz $test_name || exit_status=$?
fi

if [ -n "$exit_status" ] && [ $exit_status -ne 0 ] && [ $exit_status -ne 124 ]; then
echo "Fuzzing failed."
exit $exit_status
fi

echo "Fuzzing succeeded."

0 comments on commit 14fb850

Please sign in to comment.