summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 1 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 9f6d769d22..501defcd94 100644
--- a/Makefile
+++ b/Makefile
@@ -138,14 +138,7 @@ coverage:
@hash gocovmerge > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u github.com/wadey/gocovmerge; \
fi
- echo "mode: set" > coverage.all
- for PKG in $(PACKAGES); do\
- egrep "$$PKG[^/]*\.go" integration.coverage.out > int.coverage.out;\
- gocovmerge $$GOPATH/src/$$PKG/coverage.out int.coverage.out > pkg.coverage.out;\
- grep -h -v "^mode:" pkg.coverage.out >> coverage.all;\
- mv pkg.coverage.out $$GOPATH/src/$$PKG/coverage.out;\
- rm int.coverage.out;\
- done;
+ gocovmerge integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all;\
.PHONY: unit-test-coverage
unit-test-coverage: