Skip to content

Commit

Permalink
testing-Pre-compiled end-to-end gpu driver validation
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Sep 2, 2024
1 parent 7ab490c commit db4b625
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/scripts/remote_retry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db4b625

Please sign in to comment.