From 28d42ba23c74de1b87507bbab77413e018d518ad Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 23 Jan 2017 11:39:25 -0600 Subject: [PATCH] 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. --- goclean.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goclean.sh b/goclean.sh index 2f7f95cf..4e41e7e5 100755 --- a/goclean.sh +++ b/goclean.sh @@ -46,8 +46,8 @@ echo "mode: count" > profile.cov # Standard go tooling behavior is to ignore dirs with leading underscores. for dir in $(find . -maxdepth 10 -not -path '.' -not -path './.git*' \ - -not -path '*/_*' -not -path './cmd*' -not -path './release*' \ - -not -path './vendor*' -type d) + -not -path './.glide*' -not -path '*/_*' -not -path './cmd*' \ + -not -path './release*' -not -path './vendor*' -type d) do if ls $dir/*.go &> /dev/null; then go test -covermode=count -coverprofile=$dir/profile.tmp $dir