From e487247731f8f5eef03e19bfdee8c44ade52af59 Mon Sep 17 00:00:00 2001 From: Kjell Winblad Date: Wed, 8 Feb 2023 10:05:58 +0100 Subject: [PATCH] build: make sure run.sh with EE app is used with EE profile If one runs a test suite for an EE app using `scripts/ct/run.sh` without setting the EE profile, the test suite seems to just get stuck. This commit ensures that this will not happen and can hopefully save someone some time. Co-authored-by: Ivan Dyachkov --- scripts/ct/run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/ct/run.sh b/scripts/ct/run.sh index 69427c7c3..0641707e8 100755 --- a/scripts/ct/run.sh +++ b/scripts/ct/run.sh @@ -80,6 +80,14 @@ if [ "${WHICH_APP}" = 'novalue' ]; then exit 1 fi +if [[ "${WHICH_APP}" == lib-ee* && (-z "${PROFILE+x}" || "${PROFILE}" != emqx-enterprise) ]]; then + echo 'You are trying to run an enterprise test case without the emqx-enterprise profile.' + echo 'This will most likely not work.' + echo '' + echo 'Run "export PROFILE=emqx-enterprise" and "make" to fix this' + exit 1 +fi + ERLANG_CONTAINER='erlang' DOCKER_CT_ENVS_FILE="${WHICH_APP}/docker-ct"