infra: fix python coverage (#7711)

The current implementation will append rather than overwrite
coverage_wrapper.py which holds the coverage stub. The effect of the
appending is that the coverage_wrapper.py will include X amount of
coverage stubs when a project has X amount of fuzzers. We just need a
single coverage stub at the top of each fuzzer. This ensure we only add
a single coverage stub.
This commit is contained in:
DavidKorczynski 2022-05-17 02:51:54 +01:00 committed by GitHub
parent f582894cec
commit 7794106856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ FUZZ_WORKPATH=$PYFUZZ_WORKPATH/$fuzzer_basename
# In coverage mode prepend coverage logic to the fuzzer source
if [[ $SANITIZER = *coverage* ]]; then
cat <<EOF >> coverage_wrapper.py
cat <<EOF > coverage_wrapper.py
###### Coverage stub
import atexit
import coverage