summaryrefslogtreecommitdiffstats
path: root/tests/test_container_registry_script.py
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-06-04 22:03:10 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-06-12 02:58:55 +0000
commitdfb2c9a331e841faf3cae040439519ecf85a84a1 (patch)
tree3b84c044c66dfceea7dd91b86b7773ca0669a3df /tests/test_container_registry_script.py
parent2402ac762883774e3ba207d9cbb8018a46314360 (diff)
downloadmeta-virtualization-dfb2c9a331e841faf3cae040439519ecf85a84a1.tar.gz
tests: parametrize boot tests over container profiles for full coverage
The boot tests (TestBundledContainersBoot, TestCustomServiceFileBoot) previously depended on whatever CONTAINER_PROFILE was in local.conf, skipping docker checks when podman was configured and vice versa. Getting complete coverage required manually editing local.conf and running the tests twice. Add --container-profiles pytest option (default: docker,podman) and a profiled_session fixture that builds container-image-host with each profile via a temporary bitbake -R conf file, boots it, and runs all checks. Both docker and podman get a full build-boot-verify cycle in a single test run with no local.conf changes. Also fix: - run_bitbake() gains extra_vars parameter for bitbake -R overrides - Strip OSC 3008 shell integration escape sequences from run_command output (BusyBox shell emits these, corrupting file paths used in subsequent commands) - Use known file paths for service file content checks instead of extracting paths from ls output (avoids escape sequence corruption) - Add test_bundle_class_unpack_enabled to catch do_unpack[noexec] regression Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'tests/test_container_registry_script.py')
0 files changed, 0 insertions, 0 deletions