Replace single by double quotes, variables should
be within double quotes.
Change-Id: I5dae42178f5638689a8c46e03a01c12bd42b65e1
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
set +o pipefail
run_tiers() {
set +o pipefail
run_tiers() {
- cmd_opt='prepare_env start && run_tests -r -t all'
- [[ $BUILD_TAG =~ "suite" ]] && cmd_opt='prepare_env start && run_tests -t all'
+ tiers=$1
+ cmd_opt="prepare_env start && run_tests -r -t all"
+ [[ $BUILD_TAG =~ "suite" ]] && cmd_opt="prepare_env start && run_tests -t all"
ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
echo 0 > ${ret_val_file}
ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
echo 0 > ${ret_val_file}
run_test() {
test_name=$1
run_test() {
test_name=$1
- cmd_opt='prepare_env start && run_tests -r -t $test_name'
- [[ $BUILD_TAG =~ "suite" ]] && cmd_opt='prepare_env start && run_tests -t $test_name'
+ cmd_opt="prepare_env start && run_tests -r -t ${test_name}"
+ [[ $BUILD_TAG =~ "suite" ]] && cmd_opt="prepare_env start && run_tests -t ${test_name}"
ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
echo 0 > ${ret_val_file}
# Determine which Functest image should be used for the test case
ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
echo 0 > ${ret_val_file}
# Determine which Functest image should be used for the test case
FUNCTEST_IMAGE=opnfv/functest-vnf ;;
promise|doctor-notification|bgpvpn|functest-odl-sfc|domino-multinode|barometercollectd)
FUNCTEST_IMAGE=opnfv/functest-features ;;
FUNCTEST_IMAGE=opnfv/functest-vnf ;;
promise|doctor-notification|bgpvpn|functest-odl-sfc|domino-multinode|barometercollectd)
FUNCTEST_IMAGE=opnfv/functest-features ;;
FUNCTEST_IMAGE=opnfv/functest-parser ;;
*)
echo "Unkown test case $test_name"
FUNCTEST_IMAGE=opnfv/functest-parser ;;
*)
echo "Unkown test case $test_name"