From 89fffba48baa3bdea9be318a45fc69579fd65d4a Mon Sep 17 00:00:00 2001 From: deadprogram Date: Thu, 16 Feb 2017 17:28:35 +0100 Subject: [PATCH] test: correct 'make cover' task to work correctly Signed-off-by: deadprogram --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9bc14fa6..e79a4b8d 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ test: done ; \ cover: - echo "mode: set" > profile.cov ; \ + echo "" > profile.cov for package in $(PACKAGES) ; do \ go test -a -coverprofile=tmp.cov gobot.io/x/$$package ; \ - cat tmp.cov | grep -v "mode: set" >> profile.cov ; \ + cat tmp.cov >> profile.cov ; \ + rm tmp.cov ; \ done ; \ - rm tmp.cov ; \ robeaux: ifeq (,$(shell which go-bindata))