X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Frun_test.sh;h=b4e638cdae5f60e15c9dfdeb31eb71cd092275cf;hb=f664aa79c33336b96904659c5a21bcaa2bbf87bb;hp=679245249343424ed46b2c44e00ea0175ebde4ad;hpb=921c71b7ec5a1ffc06dfad0a040eccaf7a2883ea;p=osm%2Ftests.git diff --git a/robot-systest/run_test.sh b/robot-systest/run_test.sh index 6792452..b4e638c 100755 --- a/robot-systest/run_test.sh +++ b/robot-systest/run_test.sh @@ -44,7 +44,7 @@ create_k8scluster(){ while [ $attempts -ge 0 ] ; do echo -e "\n$( date '+%F_%H:%M:%S' ) Creating K8s Cluster" - osm k8scluster-add --creds ${K8S_CREDENTIALS} --version "v1" --vim ${VIM_TARGET} --k8s-nets "{\"net1\": \"%{VIM_MGMT_NET}\"}" ${VIM_TARGET} --description "Robot cluster" + osm k8scluster-add --creds ${K8S_CREDENTIALS} --version "v1" --vim ${VIM_TARGET} --k8s-nets "{\"net1\": \"${VIM_MGMT_NET}\"}" ${VIM_TARGET} --description "Robot cluster" STATUS="" i=0 @@ -67,7 +67,7 @@ create_k8scluster(){ ((attempts--)) done if [ $attempts -lt 0 ] ; then - echo "VIM failed to enter ENABLED state" + echo "K8s cluster failed to enter ENABLED state" exit 1 fi } @@ -227,17 +227,10 @@ if [ "$RUN_CONFORMANCE_TESTS" = true ] ; then python3 ${ROBOT_DEVOPS_FOLDER}/conformance-tests/run_conformance_tests.py fi -if [[ -z "${TEST}" ]]; then - printf "Test not provided. \nRunning default test: sanity\n" - TEST="sanity" -fi - if [[ -n "${TEST}" ]]; then - robot -d ${ROBOT_DEVOPS_FOLDER}/reports -i ${TEST} ${ROBOT_DEVOPS_FOLDER}/testsuite/ - exit 0 + robot -d ${ROBOT_DEVOPS_FOLDER}/reports --tagstatinclude "cluster-*" -i ${TEST} ${ROBOT_DEVOPS_FOLDER}/testsuite/ else - echo "Wrong test provided" - exit 1 + echo "No test was provided. Exiting..." fi -exit 1 +exit 0