1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request from tianon/hack-fix-cover-detection

Fix "go tool cover" detection to only add -cover and -coverprofile if we...
This commit is contained in:
Guillaume J. Charmes 2013-12-17 10:09:40 -08:00
commit 5204feeaa9

View file

@ -66,7 +66,10 @@ LDFLAGS_STATIC='-X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode ext
BUILDFLAGS='-tags netgo'
HAVE_GO_TEST_COVER=
if go help testflag | grep -q -- -cover; then
if \
go help testflag | grep -q -- -cover \
&& go tool -n cover > /dev/null 2>&1 \
; then
HAVE_GO_TEST_COVER=1
fi