aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorStanislav Ovchar <[email protected]>2017-03-15 13:02:12 +0300
committerLoïc Hoguin <[email protected]>2017-04-25 15:27:49 +0200
commit24beec0a19f9e31ff186c7dbb0f95b3675ff4384 (patch)
tree8879ddfffe423a937208db4e9f84f3c5e4e6df6a /plugins
parent750bdd359b0db9fc665d9a371b65ec7bb5d037c7 (diff)
downloaderlang.mk-24beec0a19f9e31ff186c7dbb0f95b3675ff4384.tar.gz
erlang.mk-24beec0a19f9e31ff186c7dbb0f95b3675ff4384.tar.bz2
erlang.mk-24beec0a19f9e31ff186c7dbb0f95b3675ff4384.zip
Accumulate eunit failures in multi-apps
Diffstat (limited to 'plugins')
-rw-r--r--plugins/eunit.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/eunit.mk b/plugins/eunit.mk
index 892e01e..9739e0e 100644
--- a/plugins/eunit.mk
+++ b/plugins/eunit.mk
@@ -63,6 +63,8 @@ eunit: test-build $(if $(IS_APP),,apps-eunit)
ifneq ($(ALL_APPS_DIRS),)
apps-eunit:
- $(verbose) for app in $(ALL_APPS_DIRS); do $(MAKE) -C $$app eunit IS_APP=1; done
+ $(verbose) eunit_retcode=0 ; for app in $(ALL_APPS_DIRS); do $(MAKE) -C $$app eunit IS_APP=1; \
+ [ $$? -ne 0 ] && eunit_retcode=1 ; done ; \
+ exit $$eunit_retcode
endif
endif