mirror of https://github.com/google/oss-fuzz.git
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:
parent
f582894cec
commit
7794106856
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue