test: correct 'make cover' task to work correctly

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-02-16 17:28:35 +01:00
parent 3c7285942c
commit 89fffba48b
1 changed files with 3 additions and 3 deletions

View File

@ -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))