mirror of
https://github.com/btcsuite/btcd.git
synced 2025-02-23 06:35:20 +01:00
build: Exclude .glide from test coverage.
The most recent version of glide creates a working directory named .glide that includes .go files and thus must be excluded from the find operation that generates merged test coverage of all packages.
This commit is contained in:
parent
c2af640c95
commit
28d42ba23c
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ echo "mode: count" > profile.cov
|
||||||
|
|
||||||
# Standard go tooling behavior is to ignore dirs with leading underscores.
|
# Standard go tooling behavior is to ignore dirs with leading underscores.
|
||||||
for dir in $(find . -maxdepth 10 -not -path '.' -not -path './.git*' \
|
for dir in $(find . -maxdepth 10 -not -path '.' -not -path './.git*' \
|
||||||
-not -path '*/_*' -not -path './cmd*' -not -path './release*' \
|
-not -path './.glide*' -not -path '*/_*' -not -path './cmd*' \
|
||||||
-not -path './vendor*' -type d)
|
-not -path './release*' -not -path './vendor*' -type d)
|
||||||
do
|
do
|
||||||
if ls $dir/*.go &> /dev/null; then
|
if ls $dir/*.go &> /dev/null; then
|
||||||
go test -covermode=count -coverprofile=$dir/profile.tmp $dir
|
go test -covermode=count -coverprofile=$dir/profile.tmp $dir
|
||||||
|
|
Loading…
Add table
Reference in a new issue