Execute test_efi_helloworld_net_http if an HTTP server is provided in the test environment.
Signed-off-by: Adriano Cordova <adriano.cord...@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