From 5ec6e11e157b94d56bc2d7aa8e94cf7e72f51871 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 18 Aug 2016 22:12:24 +0200 Subject: [PATCH] Disable coverage on test-integration-cli Temporarly remove cover bundle from defaults. Signed-off-by: Vincent Demeester --- hack/make.sh | 1 - hack/make/.integration-test-helpers | 13 +++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index 3622f60d64..b50ed03dfa 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -73,7 +73,6 @@ DEFAULT_BUNDLES=( test-integration-cli test-docker-py - cover cross tgz ) diff --git a/hack/make/.integration-test-helpers b/hack/make/.integration-test-helpers index bca1b81a22..af7cfed5a8 100644 --- a/hack/make/.integration-test-helpers +++ b/hack/make/.integration-test-helpers @@ -23,22 +23,15 @@ go_test_dir() { testcover=() testcoverprofile=() testbinary="$DEST/test.main" - if [ "$HAVE_GO_TEST_COVER" ]; then - # if our current go install has -cover, we want to use it :) - mkdir -p "$DEST/coverprofiles" - coverprofile="docker${dir#.}" - coverprofile="$ABS_DEST/coverprofiles/${coverprofile//\//-}" - testcover=( -test.cover ) - testcoverprofile=( -test.coverprofile "$coverprofile" $coverpkg ) - fi ( + mkdir -p "$DEST/coverprofiles" echo '+ go test' $TESTFLAGS "${DOCKER_PKG}${dir#.}" cd "$dir" export DEST="$ABS_DEST" # in a subshell this is safe -- our integration-cli tests need DEST, and "cd" screws it up - go test -c -o "$testbinary" ${testcover[@]} -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" + go test -c -o "$testbinary" -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" i=0 while ((++i)); do - test_env "$testbinary" ${testcoverprofile[@]} $TESTFLAGS + test_env "$testbinary" $TESTFLAGS if [ $i -gt "$TEST_REPEAT" ]; then break fi