[Functest] Add argument in function run_tiers() 41/43141/3
authorJose Lausuch <jalausuch@suse.com>
Tue, 26 Sep 2017 08:26:10 +0000 (10:26 +0200)
committerJose Lausuch <jalausuch@suse.com>
Thu, 28 Sep 2017 08:04:25 +0000 (08:04 +0000)
Replace single by double quotes, variables should
be within double quotes.

Change-Id: I5dae42178f5638689a8c46e03a01c12bd42b65e1
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
jjb/functest/functest-alpine.sh

index 8ede529..fdc3481 100755 (executable)
@@ -5,8 +5,9 @@ set +u
 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}
 
@@ -26,8 +27,8 @@ run_tiers() {
 
 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
@@ -42,7 +43,7 @@ run_test() {
             FUNCTEST_IMAGE=opnfv/functest-vnf ;;
         promise|doctor-notification|bgpvpn|functest-odl-sfc|domino-multinode|barometercollectd)
             FUNCTEST_IMAGE=opnfv/functest-features ;;
-        parser)
+        parser-basics)
             FUNCTEST_IMAGE=opnfv/functest-parser ;;
         *)
             echo "Unkown test case $test_name"