Skip to content

Commit

Permalink
[libfuzzer] Ignore timeout exit code 124
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor authored and jschwartzentruber committed Jul 3, 2024
1 parent d9c4a8e commit 375d97a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions services/libfuzzer/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ EOF

mkdir -p /tests

# See https://github.com/koalaman/shellcheck/issues/2660
# shellcheck disable=SC2317
function onexit () {
echo "Waiting for logs to flush..." >&2
sleep 15
Expand Down Expand Up @@ -95,6 +97,8 @@ else

if [[ -z "$TASK_ID" ]]
then
# See https://github.com/koalaman/shellcheck/issues/2660
# shellcheck disable=SC2317
function onexit {
disable-ec2-pool || true
}
Expand All @@ -109,3 +113,12 @@ else
./libfuzzer.sh
fi
fi

exit_code=$?
echo "returned $exit_code" >&2
if [ "$exit_code" -eq 124 ]; then
# timeout coreutil exit code.
exit 0
else
exit $exit_code
fi

0 comments on commit 375d97a

Please sign in to comment.