Change-Id: I5f31392b04b168247e332bc2ea97efeb733cdf97
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
# Directories
REPOS_DIR=$(cat $config_file | grep -w dir_repos | awk 'END {print $NF}')
FUNCTEST_REPO_DIR=$(cat $config_file | grep -w dir_repo_functest | awk 'END {print $NF}')
# Directories
REPOS_DIR=$(cat $config_file | grep -w dir_repos | awk 'END {print $NF}')
FUNCTEST_REPO_DIR=$(cat $config_file | grep -w dir_repo_functest | awk 'END {print $NF}')
-RALLY_REPO_DIR=$(cat $config_file | grep -w dir_repo_rally | awk 'END {print $NF}')
-RELENG_REPO_DIR=$(cat $config_file | grep -w dir_repo_releng | awk 'END {print $NF}')
-VIMS_REPO_DIR=$(cat $config_file | grep -w dir_repo_vims_test | awk 'END {print $NF}')
-BGPVPN_REPO_DIR=$(cat $config_file | grep -w dir_repo_bgpvpn | awk 'END {print $NF}')
-ONOS_REPO_DIR=$(cat $config_file | grep -w dir_repo_onos | awk 'END {print $NF}')
-PROMISE_REPO_DIR=$(cat $config_file | grep -w dir_repo_promise | awk 'END {print $NF}')
-OVNO_REPO_DIR=$(cat $config_file | grep -w dir_repo_ovno | awk 'END {print $NF}')
-DOCTOR_REPO_DIR=$(cat $config_file | grep -w dir_repo_doctor | awk 'END {print $NF}')
-
-
FUNCTEST_DIR=$(cat $config_file | grep -w dir_functest | awk 'END {print $NF}')
FUNCTEST_RESULTS_DIR=$(cat $config_file | grep -w dir_results | awk 'END {print $NF}')
FUNCTEST_CONF_DIR=$(cat $config_file | grep -w dir_functest_conf | awk 'END {print $NF}')
FUNCTEST_DIR=$(cat $config_file | grep -w dir_functest | awk 'END {print $NF}')
FUNCTEST_RESULTS_DIR=$(cat $config_file | grep -w dir_results | awk 'END {print $NF}')
FUNCTEST_CONF_DIR=$(cat $config_file | grep -w dir_functest_conf | awk 'END {print $NF}')
logger -s -t "FUNCTEST.info" "$*"
}
logger -s -t "FUNCTEST.info" "$*"
}
error () {
logger -s -t "FUNCTEST.error" "$*"
exit 1
error () {
logger -s -t "FUNCTEST.error" "$*"
exit 1
BASEDIR=`dirname $0`
source ${BASEDIR}/common.sh
BASEDIR=`dirname $0`
source ${BASEDIR}/common.sh
+debug=""
+if [[ "${CI_DEBUG,,}" == "true" ]];then
+ debug="--debug"
+fi
+
info "######### Preparing Functest environment #########"
info "######### Preparing Functest environment #########"
# Prepare Functest Environment
info "Preparing Functest environment..."
# Prepare Functest Environment
info "Preparing Functest environment..."
-python ${FUNCTEST_REPO_DIR}/testcases/config_functest.py --debug start
+python ${FUNCTEST_REPO_DIR}/testcases/config_functest.py $debug start
retval=$?
if [ $retval != 0 ]; then
error "Error when configuring Functest environment"
retval=$?
if [ $retval != 0 ]; then
error "Error when configuring Functest environment"
$(basename "$0") -t tempest,rally"
$(basename "$0") -t tempest,rally"
+BASEDIR=`dirname $0`
+source ${BASEDIR}/common.sh
+
report=""
clean=true
serial=false
report=""
clean=true
serial=false
function clean_openstack(){
if [ $clean == true ]; then
function clean_openstack(){
if [ $clean == true ]; then
- echo -e "\n\nCleaning Openstack environment..."
+ echo -e "\n"
+ info "Cleaning Openstack environment..."
python ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py \
$debug
python ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py \
$debug
popd
tempest_dir=$(ls -t /home/opnfv/.rally/tempest/ |grep for-deploy |tail -1)
if [[ $tempest_dir == "" ]]; then
popd
tempest_dir=$(ls -t /home/opnfv/.rally/tempest/ |grep for-deploy |tail -1)
if [[ $tempest_dir == "" ]]; then
- echo "Make sure tempest was running before"
- exit 1
+ error "Make sure tempest was running before"
fi
tempest_dir=/home/opnfv/.rally/tempest/$tempest_dir
pushd $tempest_dir
fi
tempest_dir=/home/opnfv/.rally/tempest/$tempest_dir
pushd $tempest_dir
arr_test=(healthcheck vping_ssh vping_userdata tempest vims rally)
fi
arr_test=(healthcheck vping_ssh vping_userdata tempest vims rally)
fi
-BASEDIR=`dirname $0`
-source ${BASEDIR}/common.sh
info "Tests to be executed: ${arr_test[@]}"
info "Tests to be executed: ${arr_test[@]}"