diff mbox series

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

Message ID 20221004143543.30000-6-masahisa.kojima@linaro.org
State Superseded
Headers show
Series eficonfig: add UEFI Secure Boot key maintenance interface | expand

Commit Message

Masahisa Kojima Oct. 4, 2022, 2:35 p.m. UTC
eficonfig test is get aligned with the addition of
secure boot key management menu.

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

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

Patch

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')
+@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)