From 156235e50bdec1bd5627f1ee358dd617493c7a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Go=C5=82a=C5=9B?= Date: Wed, 8 Apr 2026 06:28:50 +0200 Subject: [PATCH] lib/bios/menus: Add support for well-known non-menu setup menu lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filip Gołaś --- lib/bios/menus.robot | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/bios/menus.robot b/lib/bios/menus.robot index 50a6ce7e..8b1f71c4 100644 --- a/lib/bios/menus.robot +++ b/lib/bios/menus.robot @@ -9,6 +9,11 @@ Resource ../../keys.robot Resource ../../keywords.robot +*** Variables *** +@{NON_SELECTABLE_SETUP_MENU_LINES}= +... WARNING: The firmware accepts updates signed with a public test key + + *** Keywords *** Enter Boot Menu Tianocore [Documentation] @@ -366,6 +371,13 @@ Parse Menu Snapshot Into Construction ${line}= Strip String ${line} # Drop all remaining borders ${line}= Remove String Using Regexp ${line} ^[\\|\\s/\\\\-]+$ + # Drop well-known lines that are not part of the menu + ${non_menu}= Run Keyword And Return Status + ... Should Contain Any + ... ${line} + ... @{NON_SELECTABLE_SETUP_MENU_LINES} + IF ${non_menu} CONTINUE + # If the resulting line is not empty, add it as a menu entry ${length}= Get Length ${line} ${line_valid}= Evaluate ${length} > 0