Bug fix for new script

This commit is contained in:
Chris Hennick 2024-06-14 00:51:49 +00:00
parent 5423e4ad26
commit f4748beff6

View file

@ -3,7 +3,7 @@ ncpus=$(nproc || getconf NPROCESSORS_ONLN)
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active))))
RESTARTS=25
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_pre_fresh_blood"
for i in $(seq 1 RESTARTS); do
for i in $(seq 1 $RESTARTS); do
echo "RESTART ${i}"
mkdir "fuzz/corpus/fuzz_$1"
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
@ -12,7 +12,7 @@ for i in $(seq 1 RESTARTS); do
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_restart_${i}"
done
mkdir "fuzz/corpus/fuzz_$1"
for i in $(seq 1 RESTARTS); do
for i in $(seq 1 $RESTARTS); do
mv "fuzz/corpus/fuzz_$1_restart_${i}/*" "fuzz/corpus/fuzz_$1"
rmdir "fuzz/corpus/fuzz_$1_restart_${i}"
done