From 20bb506a4707a7a951329afa5cad43c333cf75c4 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Thu, 8 Feb 2018 13:25:19 -0800 Subject: Add timeout to health check Change-Id: I8ff710841259b947d7c6747bd17d6af8366739b6 Issue-ID: INT-278 Signed-off-by: Gary Wu --- test/ete/scripts/run-healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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") -- cgit 1.2.3-korg