tests: ensure build halts if tests fail during coverage mode

This commit is contained in:
Offer Markovich authored and Olaoluwa Osuntokun committed 2018-08-09 21:44:33 -07:00
1 parent 61f5b3e3f1
commit da521c73f3
1 file changed
+5
+5
View File
@@ -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; \