mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
All supported Go versions have -cover now
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
eda90f6344
commit
f243bfbc9d
2 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue