Enable HTTP server in CI to support HTTP tests in pytest QEMU does not emulate an HTTP server, unlike other services like DHCP or TFTP. To enable HTTP tests during CI runs, start a simple Python HTTP server on port 80. This allows tests that require HTTP access to run.
The pytest framework is informed of the server's presence setting --httpserver to a non-empty value, and pytest enables HTTP test cases. The actual string value passed on --httpserver (e.g., "localhost:80") does not affect behavior, it is only checked for non-emptiness. In the future, if the `wget` command in U-Boot adds support for specifying ports, the value of --httpserver may become meaningful and can be updated accordingly. We also default `WGET=y` in `ARCH_QEMU` configurations so that these HTTP tests are included automatically when using QEMU in CI. Adriano Cordova (3): CI testing: add http server to CI tests cmd/Kconfig: enable wget on qemu py/tests/test_efi_loader.py: execute HTTP testing if httpserver is provided .azure-pipelines.yml | 14 +++++++++++++- .gitlab-ci.yml | 14 +++++++++++++- cmd/Kconfig | 2 +- test/py/conftest.py | 5 +++++ test/py/tests/test_efi_loader.py | 5 ++++- 5 files changed, 36 insertions(+), 4 deletions(-) -- 2.48.1