X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Frun.sh;h=5dbd608b378a7cb7eb1559966d8dda512eb579c6;hb=6c2bfae36dfa0bde96fa96092ccad8b32beb7f02;hp=4d9a5c7334fcf7bed9f7f32defec26f292c3210b;hpb=5aa254607e0737916dc72200064857882e1abd36;p=doctor.git diff --git a/tests/run.sh b/tests/run.sh index 4d9a5c73..5dbd608b 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -46,6 +46,10 @@ get_compute_host_info() { grep "OS-EXT-SRV-ATTR:host" | awk '{ print $4 }' | awk -F '.' '{print $1}') ) + if [[ -z "$COMPUTE_HOST" ]] ; then + echo "ERROR: failed to get compute hostname" + exit 1 + fi if [[ "$INSTALLER_TYPE" == "apex" ]] ; then COMPUTE_USER=${COMPUTE_USER:-heat-admin} if [[ "$INSTALLER_IP" == "none" ]] ; then