Skip to content

Commit

Permalink
Don't collect coverage metrics for vendored packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilkie committed Oct 26, 2015
1 parent 3e16fe8 commit 4fa0c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ for dir in $TESTDIRS; do

GO_TEST_ARGS_RUN="$GO_TEST_ARGS"
if [ -n "$SLOW" ]; then
COVERPKGS=$( (go list $dir; go list -f '{{join .Deps "\n"}}' $dir | grep "^$PACKAGE_BASE/") | paste -s -d,)
COVERPKGS=$( (go list $dir; go list -f '{{join .Deps "\n"}}' $dir | grep -v "vendor" | grep "^$PACKAGE_BASE/") | paste -s -d,)
output=$(mktemp $coverdir/unit.XXXXXXXXXX)
GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output -coverpkg=$COVERPKGS"
fi
Expand Down

0 comments on commit 4fa0c68

Please sign in to comment.