From 4130dd45241da2828c1413f43a7a0920a2f45adb Mon Sep 17 00:00:00 2001 From: Guru9902 Date: Mon, 8 Sep 2025 09:52:40 +0000 Subject: [PATCH] ipmi: fix M1_UART_2 test to accept legacy console messages - Updated test_ipmi_outband_sol.robot to handle both "printk: console [ttyXXX] enabled" and "printk: legacy console [ttyXXX] enabled" - Regex updated to capture the TTY device name consistently - Ensures systems exposing only a legacy console (e.g. ttyAMA0) are still treated as compliant Signed-off-by: Guru9902 --- ipmi/test_ipmi_outband_sol.robot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ipmi/test_ipmi_outband_sol.robot b/ipmi/test_ipmi_outband_sol.robot index 7ffe2a4..5ca0233 100644 --- a/ipmi/test_ipmi_outband_sol.robot +++ b/ipmi/test_ipmi_outband_sol.robot @@ -86,8 +86,10 @@ Verify BSA Compliant UART From Boot Log # ===== Verify Console TTY is BSA compliant UART ===== # [ 0.960641] printk: console [ttyAMA0] enabled - ${line}= Get Lines Containing String ${output} printk: console - ${ttyConsole}= Get Regexp Matches ${line} (tty.*)] 1 + # Accept both: + # printk: console [ttyAMA0] enabled + # printk: legacy console [ttyAMA0] enabled + ${ttyConsole}= Get Regexp Matches ${output} (?m)printk: (?:legacy )?console \[(tty[^\]]+)\] enabled 1 Dictionary Should Contain Key ${spcr_tty_lists} ${ttyConsole}[0] ... msg=Failure: Console UART not a BSA compliant UART