From cfcaf319c6cc88545dbed0548fb06701269fb465 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 1 Mar 2021 14:39:50 +0100 Subject: [PATCH] Right directory for oss-fuzz targets --- tests/oss-fuzz-build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/oss-fuzz-build.sh b/tests/oss-fuzz-build.sh index caf7e8db4b..78e40a9a19 100755 --- a/tests/oss-fuzz-build.sh +++ b/tests/oss-fuzz-build.sh @@ -2,14 +2,14 @@ root=$(pwd) find parse/tests/* -maxdepth 0 -type d | while read target do - cd $root/$d + cd $root/$target fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev` compile_go_fuzzer github.com/tdewolff/parse/tests/$fuzz_target Fuzz parse-$fuzz_target-fuzzer done find minify/tests/* -maxdepth 0 -type d | while read target do - cd $root/$d + cd $root/$target fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev` compile_go_fuzzer github.com/tdewolff/minify/tests/$fuzz_target Fuzz minify-$fuzz_target-fuzzer done