From 24beec0a19f9e31ff186c7dbb0f95b3675ff4384 Mon Sep 17 00:00:00 2001 From: Stanislav Ovchar Date: Wed, 15 Mar 2017 13:02:12 +0300 Subject: Accumulate eunit failures in multi-apps --- plugins/eunit.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3