From: meimei Date: Wed, 18 Nov 2015 06:00:40 +0000 (-0800) Subject: [functest] modify functest prepare scripts to adapt compass X-Git-Tag: brahmaputra.1.0~279 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F3375%2F2;p=functest.git [functest] modify functest prepare scripts to adapt compass JIRA: COMPASS-157 Change-Id: I81f1f41ff7a10e9bcea1cb46b9dc2e2f8e169bae Signed-off-by: meimei --- diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh index 1b3144a0d..4c944b22c 100755 --- a/docker/prepare_env.sh +++ b/docker/prepare_env.sh @@ -61,10 +61,11 @@ fi info "Checking environment variables INSTALLER_TYPE and INSTALLER_IP" if [ -z ${INSTALLER_TYPE} ]; then error "Environment variable 'INSTALLER_TYPE' is not defined." -elif [ "${INSTALLER_TYPE}" != "fuel" ] && [ "${INSTALLER_TYPE}" != "foreman" ]; then +elif [[ ${INSTALLER_TYPE} =~ ^(fuel|foreman|compass|apex|juju)$ ]]; then + info "INSTALLER_TYPE env variable found: ${INSTALLER_TYPE}" +else error "Invalid environment variable INSTALLER_TYPE=${INSTALLER_TYPE}" fi -info "INSTALLER_TYPE env variable found: ${INSTALLER_TYPE}" if [ -z ${INSTALLER_IP} ]; then error "Environment variable 'INSTALLER_IP' is not defined."