diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-02-08 13:25:19 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-02-08 13:25:19 -0800 |
commit | 20bb506a4707a7a951329afa5cad43c333cf75c4 (patch) | |
tree | 3ef94bd9b476ae378593ea93c2a47ecede82b16b /test/ete/scripts | |
parent | 08be6293f9a76fa085a0293e9b1f43d32cb0e93c (diff) |
Add timeout to health check
Change-Id: I8ff710841259b947d7c6747bd17d6af8366739b6
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete/scripts')
-rwxr-xr-x | test/ete/scripts/run-healthcheck.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ete/scripts/run-healthcheck.sh b/test/ete/scripts/run-healthcheck.sh index c86fd453a..4111c3cae 100755 --- a/test/ete/scripts/run-healthcheck.sh +++ b/test/ete/scripts/run-healthcheck.sh @@ -19,7 +19,7 @@ fi ssh-keygen -R ${ROBOT_IP} -ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "OS_PROJECT_ID=$OS_PROJECT_ID OS_USERNAME=$OS_USERNAME OS_PASSWORD=$OS_PASSWORD bash -s" < ./remote/run-robot.sh +timeout 2m ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "OS_PROJECT_ID=$OS_PROJECT_ID OS_USERNAME=$OS_USERNAME OS_PASSWORD=$OS_PASSWORD bash -s" < ./remote/run-robot.sh RESULT=$? LOG_DIR=$(ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "ls -1t /opt/eteshare/logs | head -1") |