mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Make test work on mac.
This commit is contained in:
2
test
2
test
@@ -63,7 +63,7 @@ for dir in $TESTDIRS; do
|
|||||||
|
|
||||||
GO_TEST_ARGS_RUN="$GO_TEST_ARGS"
|
GO_TEST_ARGS_RUN="$GO_TEST_ARGS"
|
||||||
if [ -n "$SLOW" ]; then
|
if [ -n "$SLOW" ]; then
|
||||||
COVERPKGS=$( (go list $dir; go list -f '{{join .Deps "\n"}}' $dir | grep -v "vendor" | 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)
|
output=$(mktemp $coverdir/unit.XXXXXXXXXX)
|
||||||
GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output -coverpkg=$COVERPKGS"
|
GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output -coverpkg=$COVERPKGS"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user