From 2c0ec97782edce50cdc1116806ef743579c8093e Mon Sep 17 00:00:00 2001 From: Addison Crump Date: Tue, 20 Jun 2023 22:51:06 +0200 Subject: [PATCH] Use cpython with fuzzer corpus (#5183) Following #5055, add cpython as a member of the fuzzer corpus unconditionally. --- fuzz/init-fuzzer.sh | 1 + fuzz/reinit-fuzzer.sh | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fuzz/init-fuzzer.sh b/fuzz/init-fuzzer.sh index eb7e026505..cc99cdee27 100644 --- a/fuzz/init-fuzzer.sh +++ b/fuzz/init-fuzzer.sh @@ -17,6 +17,7 @@ if [ ! -d corpus/ruff_fix_validity ]; then if [[ $REPLY =~ ^[Yy]$ ]]; then curl -L 'https://zenodo.org/record/3628784/files/python-corpus.tar.gz?download=1' | tar xz fi + curl -L 'https://github.com/python/cpython/archive/refs/tags/v3.12.0b2.tar.gz' | tar xz cp -r "../../../crates/ruff/resources/test" . cd - cargo fuzz cmin -s none ruff_fix_validity diff --git a/fuzz/reinit-fuzzer.sh b/fuzz/reinit-fuzzer.sh index a1acb8328f..9ff9fd1ad1 100644 --- a/fuzz/reinit-fuzzer.sh +++ b/fuzz/reinit-fuzzer.sh @@ -6,9 +6,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPT_DIR" cd corpus/ruff_fix_validity -if [[ $REPLY =~ ^[Yy]$ ]]; then - curl -L 'https://zenodo.org/record/3628784/files/python-corpus.tar.gz?download=1' | tar xz -fi +curl -L 'https://github.com/python/cpython/archive/refs/tags/v3.12.0b2.tar.gz' | tar xz cp -r "../../../crates/ruff/resources/test" . cd - cargo fuzz cmin -s none ruff_fix_validity