From 043f17991d2adb74da1839020244e255c1b84f9c Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 9 Jun 2022 14:39:28 +0100 Subject: [PATCH] jsonschema: refine build to enable coverage (#7835) This follows https://github.com/python-jsonschema/jsonschema/pull/965 --- projects/jsonschema/build.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/projects/jsonschema/build.sh b/projects/jsonschema/build.sh index 3ba97abb341..c817f792327 100644 --- a/projects/jsonschema/build.sh +++ b/projects/jsonschema/build.sh @@ -19,16 +19,5 @@ pip3 install . # Build fuzzers in $OUT. for fuzzer in $(find $SRC -name 'fuzz_*.py'); do - fuzzer_basename=$(basename -s .py $fuzzer) - fuzzer_package=${fuzzer_basename}.pkg - pyinstaller --distpath $OUT --onefile --name $fuzzer_package $fuzzer - - # Create execution wrapper. - echo "#!/bin/sh -# LLVMFuzzerTestOneInput for fuzzer detection. -this_dir=\$(dirname \"\$0\") -LD_PRELOAD=\$this_dir/sanitizer_with_fuzzer.so \ -ASAN_OPTIONS=\$ASAN_OPTIONS:symbolize=1:external_symbolizer_path=\$this_dir/llvm-symbolizer:detect_leaks=0 \ -\$this_dir/$fuzzer_package \$@" > $OUT/$fuzzer_basename - chmod +x $OUT/$fuzzer_basename + compile_python_fuzzer $fuzzer done