Temporarly remove cover bundle from defaults.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
| ... | ... |
@@ -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 |