[PATCH 3/3] py/tests/test_efi_loader.py: execute HTTP testing if httpserver is provided
Adriano Cordova
adrianox at gmail.com
Fri May 9 17:43:52 CEST 2025
Execute test_efi_helloworld_net_http if an HTTP server is
provided in the test environment.
Signed-off-by: Adriano Cordova <adriano.cordova at canonical.com>
---
test/py/tests/test_efi_loader.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/py/tests/test_efi_loader.py b/test/py/tests/test_efi_loader.py
index 58f2655191f..75a638030d1 100644
--- a/test/py/tests/test_efi_loader.py
+++ b/test/py/tests/test_efi_loader.py
@@ -190,9 +190,12 @@ def test_efi_helloworld_net_http(ubman):
The helloworld.efi file is downloaded from the HTTP server and is executed
using the fallback device tree at $fdtcontroladdr.
"""
- if ubman.config.env.get('env__efi_helloworld_net_http_test_skip', True):
+ if ubman.config.env.get('env__efi_helloworld_net_http_test_skip', False):
pytest.skip('helloworld.efi HTTP test is not enabled!')
+ if not ubman.config.httpserver:
+ pytest.skip('HTTP server is not up')
+
do_test_efi_helloworld_net(ubman, PROTO_HTTP);
@pytest.mark.buildconfigspec('cmd_bootefi_hello')
--
2.48.1
More information about the U-Boot
mailing list