From da521c73f30efd79f434ef890ef503edd4153dc6 Mon Sep 17 00:00:00 2001 From: Offer Markovich Date: Fri, 10 Aug 2018 07:44:33 +0300 Subject: [PATCH] tests: ensure build halts if tests fail during coverage mode --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index fba44eda..a25599a8 100644 --- a/Makefile +++ b/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; \