From: garciadeblas Date: Tue, 23 May 2023 09:17:09 +0000 (+0200) Subject: Avoid execution of tests in run_test.sh if no tag is provided X-Git-Tag: release-v14.0-start~21 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=commitdiff_plain;h=6373cc958e17809f45cbd229323b591f93f821fa Avoid execution of tests in run_test.sh if no tag is provided The idea of this commit is to enable the use of run_test.sh for other purposes like running TST010 conformance tests or register VIM and K8s clusters, so that the VIM and cluster registration can be decoupled. In that way, daily jobs could run several tests, one after the other, with different VIMs. Change-Id: If0791f9562d23a861f8491c144cdc7f539efec46 Signed-off-by: garciadeblas --- diff --git a/robot-systest/run_test.sh b/robot-systest/run_test.sh index 01792dd..d4d5e97 100755 --- a/robot-systest/run_test.sh +++ b/robot-systest/run_test.sh @@ -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 else - echo "Wrong test provided" - exit 1 + echo "No test was provided. Exiting..." fi -exit 1 +exit 0