Minor fuzzer improvements (#9375)

<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

- Adds timeouts to fuzzer cmin stages in the case of an infinite loop
- Adds executable flag to reinit-fuzzer.sh because it was annoying me

## Test Plan

Not needed.
This commit is contained in:
Addison Crump 2024-01-03 02:52:42 +01:00 committed by GitHub
parent 6c0734680e
commit 154d3b9f4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ if [ ! -d corpus/ruff_fix_validity ]; then
curl -L 'https://github.com/python/cpython/archive/refs/tags/v3.12.0b2.tar.gz' | tar xz
cp -r "../../../crates/ruff_linter/resources/test" .
cd -
cargo fuzz cmin -s none ruff_fix_validity
cargo fuzz cmin -s none ruff_fix_validity -- -timeout=5
fi
echo "Done! You are ready to fuzz."