From 25dd11ee3960de05377865f588b99074551b3993 Mon Sep 17 00:00:00 2001 From: Christian Briones Date: Thu, 5 Jun 2014 17:25:22 -0700 Subject: move CT_OPTS so that -erl_args works as expected when running tests --- plugins/ct.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/ct.mk') diff --git a/plugins/ct.mk b/plugins/ct.mk index e3e33f5..a6d8f52 100644 --- a/plugins/ct.mk +++ b/plugins/ct.mk @@ -33,8 +33,7 @@ CT_RUN = ct_run \ -noshell \ -pa $(realpath ebin) $(DEPS_DIR)/*/ebin \ -dir test \ - -logdir logs \ - $(CT_OPTS) + -logdir logs $(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep)))) @@ -50,7 +49,7 @@ tests-ct: clean deps app build-ct-suites @if [ -d "test" ] ; \ then \ mkdir -p logs/ ; \ - $(CT_RUN) -suite $(addsuffix _SUITE,$(CT_SUITES)) ; \ + $(CT_RUN) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS) ; \ fi $(gen_verbose) rm -f test/*.beam @@ -60,7 +59,7 @@ ct-$(1): clean deps app build-tests @if [ -d "test" ] ; \ then \ mkdir -p logs/ ; \ - $(CT_RUN) -suite $(addsuffix _SUITE,$(1)) ; \ + $(CT_RUN) -suite $(addsuffix _SUITE,$(1)) $(CT_OPTS) ; \ fi $(gen_verbose) rm -f test/*.beam endef -- cgit v1.2.3