Преглед изворни кода

Merge pull request #9934 from kjellwinblad/kjell/fix/run-sh-ee-app-with-ee-profile

build: make sure run.sh with EE app is used with EE profile
Kjell Winblad пре 3 година
родитељ
комит
80cd018f28
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      scripts/ct/run.sh

+ 8 - 0
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"