Merge "Change path for liberty and kilo"

This commit is contained in:
Jenkins
2016-03-02 09:20:07 +00:00
committed by Gerrit Code Review
3 changed files with 15 additions and 6 deletions

View File

@@ -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 }')

View File

@@ -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

View File

@@ -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