include directory of test code in coverage

Fixes #1220.
This commit is contained in:
Matthias Radestock committed 2015-07-27 17:08:31 +01:00
1 parent 536ce992fc
commit 9a91b3ce9c
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ for dir in $TESTDIRS; do
GO_TEST_ARGS_RUN="$GO_TEST_ARGS"
if [ -n "$SLOW" ]; then
COVERPKGS=$(go list -f '{{join .Deps "\n"}}' $dir | grep "weaveworks" | paste -s -d,)
COVERPKGS=$((go list $dir; go list -f '{{join .Deps "\n"}}' $dir | grep "weaveworks") | paste -s -d,)
output=$(mktemp $coverdir/unit.XXXXXXXXXX)
GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output -coverpkg=$COVERPKGS"
fi