mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
tests: repair oss-fuzz coverage command (#33304)
The coverage build path was generating go test commands with a bogus -tags flag that held the coverpkg value, so the run kept failing. I switched coverbuild to treat the optional argument as an override for -coverpkg and stopped passing coverpkg from the caller. Now the script emits a clean go test invocation that should actually succeed.
This commit is contained in:
parent
31d5d82ce5
commit
1278b4891d
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ function compile_fuzzer() {
|
|||
go get github.com/holiman/gofuzz-shim/testing
|
||||
|
||||
if [[ $SANITIZER == *coverage* ]]; then
|
||||
coverbuild $path $function $fuzzer $coverpkg
|
||||
coverbuild $path $function $fuzzer
|
||||
else
|
||||
gofuzz-shim --func $function --package $package -f $file -o $fuzzer.a
|
||||
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer
|
||||
|
|
|
|||
Loading…
Reference in a new issue