From 6cce4c31ebade521dd5e391d24411d0dabb54f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Thu, 14 May 2026 12:06:37 +0200 Subject: [PATCH] dasharo-stability/capsule-update.robot: Increase timeout to pop-up reboot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Żygowski --- dasharo-stability/capsule-update.robot | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/dasharo-stability/capsule-update.robot b/dasharo-stability/capsule-update.robot index d8a86f2d..3ce7d55b 100644 --- a/dasharo-stability/capsule-update.robot +++ b/dasharo-stability/capsule-update.robot @@ -290,10 +290,26 @@ Perform Capsule Update And Return Status Perform Capsule Update ${capsule_file} - IF ${CAPSULE_DOES_NOT_PERSIST_ACROSS_RESET} and ${CAPSULE_ON_DISK_SUPPORT} and '${INITIAL_DUT_CONNECTION_METHOD}' != 'SSH' - # This path should only be executed if Capsule Update reporting is enabled + # TODO: Only if Capsule Update reporting is enabled + IF ${CAPSULE_DOES_NOT_PERSIST_ACROSS_RESET} and ${CAPSULE_ON_DISK_SUPPORT} + IF '${INITIAL_DUT_CONNECTION_METHOD}' == 'SSH' + Fail Cannot read logs from Capsule on Disk with SSH connection + END + # Couple more checkpoints before waiting for capsule update completion + Read From Terminal Until Shell> + Read From Terminal Until Succeed to write ${capsule_file} + # Give the capsuel enough time to actually finish the update + # On AMD servers where the boot time is long because of PSP, we may not + # have enough time to wait for pop-up with default response timeout + ${prev_timeout}= Set DUT Response Timeout 500s ${logs}= Read From Terminal Until ENTER to reboot - Sleep 2s + Set DUT Response Timeout ${prev_timeout} + # The ENTER key does not seem to be picked immediately after we read + # the "ENTER to reboot" string from the pop-up. Probably because of + # the color change of the pop-up on the screen after it is initially + # drawn. It likely delays the key polling in firmware and drops the + # premature key presses. + Sleep 3s Press Key N Times 1 ${ENTER} ELSE Power On