Squashed 'tools/' changes from 3e16fe8..4fa0c68

4fa0c68 Don't collect coverage metrics for vendored packages.

git-subtree-dir: tools
git-subtree-split: 4fa0c68afa
This commit is contained in:
Tom Wilkie
2015-10-26 17:08:08 +00:00
parent c6a083dd90
commit 21c126249f

2
test
View File

@@ -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