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
  • Loading branch information
shivakunv committed Sep 2, 2024
1 parent 757568e commit b626893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/scripts/kernel-upgrade-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if [ "${CURRENT_KERNEL}" != ${KERNEL_VERSION} ]; then
sudo update-initramfs -u -k ${KERNEL_VERSION} || true
echo "Rebooting ..."
# Run the reboot command with nohup to avoid abrupt SSH closure issues
nohup bash -c "sleep 5 && sudo reboot -f" &
nohup sudo reboot &

echo "--------------Kernel upgrade completed--------------"
else
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/remote_retry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ handle_timeout() {
trap handle_timeout EXIT

# sleep before to handle restart of the system
# sleep 60;
sleep 60;

while [ $SECONDS_ELAPSED -lt $AWS_SYSTEM_ONLINE_CHECK_TIMEOUT ]; do
# Attempt to connect via SSH and ignore errors
status=0
(
ssh -o ConnectTimeout=5 -i ${private_key} ${instance_hostname} "sleep $INTERVAL; 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 b626893

Please sign in to comment.