All supported Go versions have -cover now

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Upstream-commit: f243bfbc9d3879be33946d92801cc0f3e7290b17
Component: engine
This commit is contained in:
Justin Cormack
2016-08-25 18:24:35 +01:00
parent 4d71bb6be2
commit 49618f0083
2 changed files with 2 additions and 9 deletions

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"