Fail bootstrap immediately if no topology found
[csit.git] / bootstrap-verify-perf-DPDK.sh
index 566f5bc..d24167d 100755 (executable)
@@ -20,11 +20,9 @@ TOPOLOGIES_3N_HSW="topologies/available/lf_3n_hsw_testbed1.yaml \
                    topologies/available/lf_3n_hsw_testbed2.yaml \
                    topologies/available/lf_3n_hsw_testbed3.yaml"
 TOPOLOGIES_2N_SKX="topologies/available/lf_2n_skx_testbed21.yaml \
-                   topologies/available/lf_2n_skx_testbed22.yaml \
-                   topologies/available/lf_2n_skx_testbed23.yaml \
                    topologies/available/lf_2n_skx_testbed24.yaml"
-TOPOLOGIES_3N_SKX="topologies/available/lf_2n_skx_testbed31.yaml \
-                   topologies/available/lf_2n_skx_testbed32.yaml"
+TOPOLOGIES_3N_SKX="topologies/available/lf_3n_skx_testbed31.yaml \
+                   topologies/available/lf_3n_skx_testbed32.yaml"
 
 # SYSTEM
 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -96,6 +94,10 @@ virtualenv --system-site-packages env
 . env/bin/activate
 pip install -r requirements.txt
 
+if [ -z "${TOPOLOGIES}" ]; then
+    echo "No applicable topology found!"
+    exit 1
+fi
 # We iterate over available topologies and wait until we reserve topology
 while :; do
     for TOPOLOGY in ${TOPOLOGIES};
@@ -151,9 +153,7 @@ case "$TEST_TAG" in
             # If nothing is specified, we will run pre-selected tests by
             # following tags. Items of array will be concatenated by OR in Robot
             # Framework.
-            TEST_TAG_ARRAY=('mrrANDnic_intel-x710AND1cAND64bANDip4base'
-                            'mrrANDnic_intel-x710AND1cAND78bANDip6base'
-                            'mrrANDnic_intel-x710AND1cAND64bANDl2bdbase')
+            TEST_TAG_ARRAY=('mrrANDnic_intel-x710AND1cAND64b')
         else
             # If trigger contains tags, split them into array.
             TEST_TAG_ARRAY=(${TEST_TAG_STRING//:/ })