[Concept,14/19] test: py: Mark slow EFI selftest tests

Message ID 20260314231618.338113-15-sjg@u-boot.org
State New
Headers
Series test: Fix pytest inter-test side effects |

Commit Message

Simon Glass March 14, 2026, 11:16 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

These three tests take a long time to run (2-8s each) due to the
interactive nature of the EFI selftest framework and the U-Boot
restart they perform:

  8.4s  test_efi_selftest_text_input_ex
  7.4s  test_efi_selftest_text_input
  2.4s  test_efi_selftest_base

Mark them as slow so they can be excluded with '-k not slow'.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 test/py/tests/test_efi_selftest.py | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py
index 2a959ae3406..ef1301f620e 100644
--- a/test/py/tests/test_efi_selftest.py
+++ b/test/py/tests/test_efi_selftest.py
@@ -7,6 +7,7 @@ 
 import pytest
 
 @pytest.mark.buildconfigspec('cmd_bootefi_selftest')
+@pytest.mark.slow
 @pytest.mark.restart
 def test_efi_selftest_base(ubman):
     """Run UEFI unit tests
@@ -64,6 +65,7 @@  def test_efi_selftest_watchdog_reboot(ubman):
     ubman.run_command(cmd='', send_nl=False, wait_for_reboot=True)
 
 @pytest.mark.buildconfigspec('cmd_bootefi_selftest')
+@pytest.mark.slow
 @pytest.mark.restart
 def test_efi_selftest_text_input(ubman):
     """Test the EFI_SIMPLE_TEXT_INPUT_PROTOCOL
@@ -120,6 +122,7 @@  def test_efi_selftest_text_input(ubman):
     ubman.restart_uboot()
 
 @pytest.mark.buildconfigspec('cmd_bootefi_selftest')
+@pytest.mark.slow
 @pytest.mark.restart
 def test_efi_selftest_text_input_ex(ubman):
     """Test the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL