tests: ensure build halts if tests fail during coverage mode

This commit is contained in:
Offer Markovich 2018-08-10 07:44:33 +03:00 committed by Olaoluwa Osuntokun
parent 61f5b3e3f1
commit da521c73f3

@ -47,6 +47,11 @@ COVER = for dir in $(GOLISTCOVER); do \
-covermode=count \
-coverprofile=$$dir/profile.tmp $$dir; \
\
if [ $$? != 0 ] ;\
then \
exit 1 ;\
fi ;\
\
if [ -f $$dir/profile.tmp ]; then \
cat $$dir/profile.tmp | \
tail -n +2 >> profile.cov; \