diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-11-09 11:42:15 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-11-09 11:42:15 -0800 |
commit | 4aa2aeedfffa45e2e2022a070bcc350b2a0210e5 (patch) | |
tree | 1dee0837ff5261c5cd921b4e8f3bea257b0d5b21 /test/ete/scripts/run-healthcheck.sh | |
parent | a5f972e99962c2fe3bb426a041eb4ba344f617fd (diff) |
Update robot initialization detection
Change-Id: I0b19fde5d36b4b5582c983979a336eddab46f87c
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete/scripts/run-healthcheck.sh')
-rwxr-xr-x | test/ete/scripts/run-healthcheck.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ete/scripts/run-healthcheck.sh b/test/ete/scripts/run-healthcheck.sh index 10811b500..057504efd 100755 --- a/test/ete/scripts/run-healthcheck.sh +++ b/test/ete/scripts/run-healthcheck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x SSH_KEY=~/.ssh/onap_key @@ -13,6 +13,10 @@ cd $WORKSPACE/test/ete/scripts ROBOT_IP=$(./get-floating-ip.sh onap-robot) echo "ROBOT_IP=${ROBOT_IP}" +if [ "" == "${ROBOT_IP}" ]; then + exit 1 +fi + ssh-keygen -R ${ROBOT_IP} ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "OS_PASSWORD_INPUT=$OS_PASSWORD_INPUT bash -s" < ./remote/run-robot.sh |