aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eunit.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-23 23:37:52 +0100
committerLoïc Hoguin <[email protected]>2018-11-23 23:37:52 +0100
commitf713103ddc22ac8fdaf80198dc7e24f9032c84b1 (patch)
treedb896cff6d62455fbb6d3e08d054aa67182e4a55 /plugins/eunit.mk
parentbc6864dcc846aae785599799c653a8f1f9ce0502 (diff)
downloaderlang.mk-f713103ddc22ac8fdaf80198dc7e24f9032c84b1.tar.gz
erlang.mk-f713103ddc22ac8fdaf80198dc7e24f9032c84b1.tar.bz2
erlang.mk-f713103ddc22ac8fdaf80198dc7e24f9032c84b1.zip
Ensure apps eunit tests only run once when called directly
Diffstat (limited to 'plugins/eunit.mk')
-rw-r--r--plugins/eunit.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/eunit.mk b/plugins/eunit.mk
index 6ef0778..4e2afb1 100644
--- a/plugins/eunit.mk
+++ b/plugins/eunit.mk
@@ -63,7 +63,7 @@ EUNIT_TEST_MODS = $(notdir $(basename $(call core_find,$(TEST_DIR)/,*.erl)))
EUNIT_MODS = $(foreach mod,$(EUNIT_EBIN_MODS) $(filter-out \
$(patsubst %,%_tests,$(EUNIT_EBIN_MODS)),$(EUNIT_TEST_MODS)),'$(mod)')
-eunit: test-build $(if $(IS_APP),,apps-eunit) cover-data-dir
+eunit: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-eunit) cover-data-dir
$(gen_verbose) $(call erlang,$(call eunit.erl,[$(call comma_list,$(EUNIT_MODS))]),$(EUNIT_ERL_OPTS))
ifneq ($(ALL_APPS_DIRS),)