fix: remove superfluous $coverpkg argument in coverage build

This commit is contained in:
bigbear 2025-12-20 13:31:12 +01:00 committed by GitHub
parent 89b4c8e3dd
commit 5a761c3846
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,10 +22,10 @@ function coverbuild {
path=$1
function=$2
fuzzer=$3
coverage_package=$coverpkg
tags=""
if [[ $# -eq 4 ]]; then
coverage_package=$4
tags="-tags $4"
fi
cd $path
fuzzed_package=`pwd | rev | cut -d'/' -f 1 | rev`
@ -38,7 +38,7 @@ cat << DOG > $OUT/$fuzzer
#/bin/sh
cd $OUT/$path
go test -run Test${function}Corpus -v -coverprofile \$1 -coverpkg $coverage_package
go test -run Test${function}Corpus -v $tags -coverprofile \$1 -coverpkg $coverpkg
DOG
@ -228,4 +228,3 @@ compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/eth \
FuzzEthProtocolHandlers fuzz_eth_protocol_handlers \
$repo/eth/protocols/eth/handler_test.go,$repo/eth/protocols/eth/peer_test.go