tests: ensure build halts if tests fail during coverage mode
This commit is contained in:
parent
61f5b3e3f1
commit
da521c73f3
5
Makefile
5
Makefile
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user