Browse code

Disable coverage on test-integration-cli

Temporarly remove cover bundle from defaults.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Vincent Demeester authored on 2016/08/19 05:12:24
Showing 2 changed files
... ...
@@ -73,7 +73,6 @@ DEFAULT_BUNDLES=(
73 73
 	test-integration-cli
74 74
 	test-docker-py
75 75
 
76
-	cover
77 76
 	cross
78 77
 	tgz
79 78
 )
... ...
@@ -23,22 +23,15 @@ go_test_dir() {
23 23
 	testcover=()
24 24
 	testcoverprofile=()
25 25
 	testbinary="$DEST/test.main"
26
-	if [ "$HAVE_GO_TEST_COVER" ]; then
27
-		# if our current go install has -cover, we want to use it :)
28
-		mkdir -p "$DEST/coverprofiles"
29
-		coverprofile="docker${dir#.}"
30
-		coverprofile="$ABS_DEST/coverprofiles/${coverprofile//\//-}"
31
-		testcover=( -test.cover )
32
-		testcoverprofile=( -test.coverprofile "$coverprofile" $coverpkg )
33
-	fi
34 26
 	(
27
+		mkdir -p "$DEST/coverprofiles"
35 28
 		echo '+ go test' $TESTFLAGS "${DOCKER_PKG}${dir#.}"
36 29
 		cd "$dir"
37 30
 		export DEST="$ABS_DEST" # in a subshell this is safe -- our integration-cli tests need DEST, and "cd" screws it up
38
-		go test -c -o "$testbinary" ${testcover[@]} -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}"
31
+		go test -c -o "$testbinary" -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}"
39 32
 		i=0
40 33
 		while ((++i)); do
41
-			test_env "$testbinary" ${testcoverprofile[@]} $TESTFLAGS
34
+			test_env "$testbinary" $TESTFLAGS
42 35
 			if [ $i -gt "$TEST_REPEAT" ]; then
43 36
 				break
44 37
 			fi