Signed-off-by: Justin Cormack <justin.cormack@docker.com>
| ... | ... |
@@ -12,9 +12,4 @@ bundle_cover() {
|
| 12 | 12 |
done |
| 13 | 13 |
} |
| 14 | 14 |
|
| 15 |
-if [ "$HAVE_GO_TEST_COVER" ]; then |
|
| 16 |
- bundle_cover 2>&1 | tee "$DEST/report.log" |
|
| 17 |
-else |
|
| 18 |
- echo >&2 'warning: the current version of go does not support -cover' |
|
| 19 |
- echo >&2 ' skipping test coverage report' |
|
| 20 |
-fi |
|
| 15 |
+bundle_cover 2>&1 | tee "$DEST/report.log" |
| ... | ... |
@@ -34,9 +34,7 @@ bundle_test_unit() {
|
| 34 | 34 |
| grep -v github.com/docker/docker/vendor \ |
| 35 | 35 |
| grep -v github.com/docker/docker/man \ |
| 36 | 36 |
| grep -v github.com/docker/docker/integration-cli) |
| 37 |
- go test $COVER -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
|
|
| 37 |
+ go test -cover -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
|
|
| 38 | 38 |
} |
| 39 | 39 |
|
| 40 |
-COVER=-cover |
|
| 41 |
- |
|
| 42 | 40 |
bundle_test_unit 2>&1 | tee -a "$DEST/test.log" |