From ba5c853244663531e6af4908e5e3ca0395c2061f Mon Sep 17 00:00:00 2001 From: Evgeny Sikachev Date: Wed, 24 Feb 2016 15:46:39 +0300 Subject: [PATCH] Change path for liberty and kilo Files for kilo and liberty releases moved to separate dir and dir with sahara-ci renamed Depends-on: Iea65367bc3cffa2198117d245572c7d9a8260eeb Change-Id: I80e0d0ade1131bc627b3c7f01b42f661e3ddfd60 --- slave-scripts/dib.sh | 2 +- slave-scripts/functions-common.sh | 7 +++---- slave-scripts/gate-sahara.sh | 12 +++++++++++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/slave-scripts/dib.sh b/slave-scripts/dib.sh index 185af574..a548ee70 100755 --- a/slave-scripts/dib.sh +++ b/slave-scripts/dib.sh @@ -12,7 +12,7 @@ cluster_name="$HOST-$ZUUL_CHANGE-$CLUSTER_HASH" SAHARA_PATH="/tmp/sahara" SAHARA_TESTS_PATH="/tmp/sahara-tests" sahara_conf_file="$SAHARA_PATH/etc/sahara/sahara.conf" -sahara_templates_path=$SAHARA_TESTS_PATH/etc/scenario/sahara-ci +sahara_templates_path=$SAHARA_TESTS_PATH/etc/scenario/defaults engine=$(echo $JOB_NAME | awk -F '-' '{ print $3 }') diff --git a/slave-scripts/functions-common.sh b/slave-scripts/functions-common.sh index 8e65b444..56dccab6 100755 --- a/slave-scripts/functions-common.sh +++ b/slave-scripts/functions-common.sh @@ -109,11 +109,10 @@ run_tests() { local concurrency=${2:-"1"} echo "Integration tests are started" export PYTHONUNBUFFERED=1 - local templates_path=$(dirname $scenario_config) - local scenario_credentials="$templates_path/credentials.yaml.mako" - local scenario_edp="$templates_path/edp.yaml.mako" + local scenario_credentials="$tests_etc/credentials.yaml.mako" + local scenario_edp="$tests_etc/edp.yaml.mako" if [ ! -f $scenario_edp ]; then - scenario_edp="$templates_path/edp.yaml" + scenario_edp="$tests_etc/edp.yaml" fi # Temporary use additional log file, due to wrong status code from tox scenario tests pushd $SAHARA_TESTS_PATH diff --git a/slave-scripts/gate-sahara.sh b/slave-scripts/gate-sahara.sh index 0458a9b9..06decc2a 100755 --- a/slave-scripts/gate-sahara.sh +++ b/slave-scripts/gate-sahara.sh @@ -11,7 +11,8 @@ cluster_name="$HOST-$ZUUL_CHANGE-$CLUSTER_HASH" SAHARA_PATH=${1:-$WORKSPACE} SAHARA_TESTS_PATH=${2:-"/tmp/sahara-tests"} sahara_conf_file=$SAHARA_PATH/etc/sahara/sahara.conf -sahara_templates_path=$SAHARA_TESTS_PATH/etc/scenario/sahara-ci +sahara_templates_path=$SAHARA_TESTS_PATH/etc/scenario/defaults +tests_etc=$sahara_templates_path # Clone Sahara Scenario tests if [ "$ZUUL_PROJECT" != "openstack/sahara-tests" ]; then @@ -25,6 +26,15 @@ image_name=${plugin}_${os} mode="aio" sahara_plugin=$(echo $plugin | awk -F '_' '{ print $1 } ') +case $ZUUL_BRANCH in + stable/liberty) + sahara_templates_path="$sahara_templates_path/liberty" + ;; + stable/kilo) + sahara_templates_path="$sahara_templates_path/kilo" + ;; +esac + case $plugin in hdp_2.0.6) mode=distribute