[PATCH 0/3] test/py: enable HTTP testing

Adriano Córdova adrianox at gmail.com
Mon May 12 13:27:28 CEST 2025


Hi Tom,

The argument can be removed, yes, and the HTTP server can work as the TFTP
one. I will send a v2

El vie, 9 may 2025 a las 13:38, Tom Rini (<trini at konsulko.com>) escribió:

> 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
>


More information about the U-Boot mailing list