Skip to content

support OEQA inside container

André Draszik openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4oeqa/utils/httpserver: allow to pass in listening portmeta/lib/oeqa/utils/httpserver.py+2 -20 replies
2/4oeqa/runtime/context.py: support listening port in TEST_SERVER_IPmeta/lib/oeqa/runtime/context.py+6 -00 replies
3/4oeqa/target/ssh oeqa/target/qemu: expose server listening port to testsmeta/lib/oeqa/core/target/qemu.py meta/lib/oeqa/core/target/ssh.py+3 -10 replies
4/4oeqa/runtime/apt dnf opkg: support running from within docker containermeta/lib/oeqa/runtime/cases/apt.py meta/lib/oeqa/runtime/cases/dnf.py meta/lib/oeqa/runtime/cases/opkg.py+8 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] support OEQA inside container

Hi,

With these patches it is possible to run bitbake inside a docker container and still successfully execute the OEQA tests that require the target to talk to a temporary http server spawned on the machine running bitake, e.g. using crops.

This wasn't possible so far because:
* we need to map a port from outside the container into the container for the target to be able to reach the http server
* we need to pass the IP address of the docker host to the target, e.g. in the OPKG repository URL, but we can't bind the http server to that IP address, as the http server is running inside the container with a different IP address - the bind would fail

To make this work, TEST_SERVER_IP needs to be set to the IP address of the docker host, and the port that is mapped into the container can now also be specified in TEST_SERVER_IP, similar to TEST_TARGET_IP

Cheers,
Andre'