From db4b625875f537ac57729a80fe7c67d360cc890c Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Mon, 2 Sep 2024 12:30:51 +0530 Subject: [PATCH] testing-Pre-compiled end-to-end gpu driver validation Signed-off-by: shiva kumar --- tests/scripts/remote_retry.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/scripts/remote_retry.sh b/tests/scripts/remote_retry.sh index 9b506d89..2ee4eb68 100755 --- a/tests/scripts/remote_retry.sh +++ b/tests/scripts/remote_retry.sh @@ -16,12 +16,14 @@ handle_timeout() { # Set trap for timeout trap handle_timeout EXIT +# sleep before to handle restart of the system +sleep 60; + while [ $SECONDS_ELAPSED -lt $AWS_SYSTEM_ONLINE_CHECK_TIMEOUT ]; do # Attempt to connect via SSH and ignore errors status=0 ( - # sleep before to handle restart of the system - ssh -o ConnectTimeout=5 -i ${private_key} ${instance_hostname} "sleep 60;exit" + ssh -o ConnectTimeout=5 -i ${private_key} ${instance_hostname} "exit" ) >/dev/null 2>&1 status=$? if [ $status -eq 0 ]; then