X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fcommon.sh;h=e89bae9b3853beb5c38d1bad4b9a1f208f47034b;hp=6d078e5a8bba52f6496cf93160aa412707940033;hb=7c1753296301b237c19d5c2fbf8f9102fde8d3c1;hpb=0b704d1fcfd4150601d40f9c5c59f61a5c120e6a diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index 6d078e5a8b..e89bae9b38 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -580,7 +580,11 @@ function reserve_and_cleanup_testbed () { echo "Sleeping ${sleep_time}" sleep "${sleep_time}" || die "Sleep failed." done - die "Run out of operational testbeds!" + if [[ ${TOPOLOGIES[@]} ]]; then + echo "Reservation and cleanup successful." + else + die "Run out of operational testbeds!" + fi }