[PATCH v2 5/6] test/eficonfig: support secure boot key maintenance menu

Masahisa Kojima masahisa.kojima at linaro.org
Tue Oct 4 16:35:41 CEST 2022


eficonfig test is get aligned with the addition of
secure boot key management menu.

Signed-off-by: Masahisa Kojima <masahisa.kojima at linaro.org>
---
newly created in v2

 test/py/tests/test_eficonfig/test_eficonfig.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/py/tests/test_eficonfig/test_eficonfig.py b/test/py/tests/test_eficonfig/test_eficonfig.py
index 99606d9c4b..f7cb031af2 100644
--- a/test/py/tests/test_eficonfig/test_eficonfig.py
+++ b/test/py/tests/test_eficonfig/test_eficonfig.py
@@ -8,6 +8,7 @@ import time
 @pytest.mark.boardspec('sandbox')
 @pytest.mark.buildconfigspec('cmd_eficonfig')
 @pytest.mark.buildconfigspec('cmd_bootefi_bootmgr')
+ at pytest.mark.buildconfigspec('efi_secure_boot')
 def test_efi_eficonfig(u_boot_console, efi_eficonfig_data):
 
     def send_user_input_and_wait(user_str, expect_str):
@@ -47,7 +48,7 @@ def test_efi_eficonfig(u_boot_console, efi_eficonfig_data):
 
     def check_current_is_maintenance_menu():
         for i in ('UEFI Maintenance Menu', 'Add Boot Option', 'Edit Boot Option',
-                  'Change Boot Order', 'Delete Boot Option', 'Quit'):
+                  'Change Boot Order', 'Delete Boot Option', 'Secure Boot Configuration', 'Quit'):
             u_boot_console.p.expect([i])
 
     """ Unit test for "eficonfig" command
@@ -349,6 +350,7 @@ def test_efi_eficonfig(u_boot_console, efi_eficonfig_data):
         press_up_down_enter_and_wait(0, 1, True, 'Quit')
         press_up_down_enter_and_wait(0, 0, True, 'No block device found!')
         press_escape_key(False)
+        press_escape_key(False)
         check_current_is_maintenance_menu()
         # Return to U-Boot console
         press_escape_key(True)
-- 
2.17.1



More information about the U-Boot mailing list