diff --git a/hack/make/cover b/hack/make/cover index 624943b8aa..08e28e3fea 100644 --- a/hack/make/cover +++ b/hack/make/cover @@ -12,9 +12,4 @@ bundle_cover() { done } -if [ "$HAVE_GO_TEST_COVER" ]; then - bundle_cover 2>&1 | tee "$DEST/report.log" -else - echo >&2 'warning: the current version of go does not support -cover' - echo >&2 ' skipping test coverage report' -fi +bundle_cover 2>&1 | tee "$DEST/report.log" diff --git a/hack/make/test-unit b/hack/make/test-unit index 913c8b8e3f..24b79bd374 100644 --- a/hack/make/test-unit +++ b/hack/make/test-unit @@ -34,9 +34,7 @@ bundle_test_unit() { | grep -v github.com/docker/docker/vendor \ | grep -v github.com/docker/docker/man \ | grep -v github.com/docker/docker/integration-cli) - go test $COVER -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list + go test -cover -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list } -COVER=-cover - bundle_test_unit 2>&1 | tee -a "$DEST/test.log"