Fail bootstrap immediately if no topology found
[csit.git] / bootstrap-verify-perf-DPDK.sh
index 698d94b..d24167d 100755 (executable)
@@ -94,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};

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.