From 79de6507c59021484e7c0b359f45035eab891e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 13 Apr 2025 15:47:31 +0200 Subject: [PATCH] CI: fix waiting for final test message (again) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous attempt has correct diagnosis, but added -notransfer flag in a wrong place - it should be used in the first (outer) match out of two, not the second (inner) one. Fixes: 1e12cbd6af2c ("CI: fix waiting for final test message") Signed-off-by: Marek Marczykowski-Górecki Acked-by: Andrew Cooper --- automation/scripts/console.exp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/automation/scripts/console.exp b/automation/scripts/console.exp index bdb1dd9820..fc80513dfb 100755 --- a/automation/scripts/console.exp +++ b/automation/scripts/console.exp @@ -60,12 +60,12 @@ if {[info exists env(WAKEUP_CMD)]} { if {[info exists env(LOG_MSG)]} { expect { - -re "$env(PASSED)" { - expect -notransfer -re "$env(LOG_MSG)" + -notransfer -re "$env(PASSED)" { + expect -re "$env(LOG_MSG)" exit 0 } - -re "$env(LOG_MSG)" { - expect -notransfer -re "$env(PASSED)" + -notransfer -re "$env(LOG_MSG)" { + expect -re "$env(PASSED)" exit 0 } }