[PATCH 0/3] test/py: enable HTTP testing
Tom Rini
trini at konsulko.com
Fri May 9 19:38:54 CEST 2025
On Fri, May 09, 2025 at 11:43:49AM -0400, Adriano Cordova wrote:
> 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.
I'm not 100% sure on this part. I've been doing this locally with the
python http server running on the dhcp server. This should also just
work in CI, and not need further argument passing?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250509/cfce012f/attachment.sig>
More information about the U-Boot
mailing list