mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
fix: remove superfluous $coverpkg argument in coverage build
This commit is contained in:
parent
89b4c8e3dd
commit
5a761c3846
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue