All supported Go versions have -cover now

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-08-25 18:24:35 +01:00
parent eda90f6344
commit f243bfbc9d
2 changed files with 2 additions and 9 deletions

View File

@ -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"

View File

@ -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"