[PATCH 00/11] Move test/py image creation into separate per-OS modules

Tom Rini trini at konsulko.com
Mon May 18 19:45:00 CEST 2026


On Sun, May 17, 2026 at 04:50:58PM -0600, Simon Glass wrote:
> 
> test_ut.py has accumulated a setup_*_image() helper for every Linux
> distribution that the bootflow tests want to boot. Each one is mostly
> shell script and partition layout, so the file is large and the test
> logic is hidden among image-creation details.
> 
> Move each setup function to its own module under test/py/img/, with a
> shared common.py for mkdir_cond(), copy_partition() and the extlinux
> helper. Each patch moves one image at a time so reviewers can see the
> relocation cleanly.
> 
> While here, also redirect the generated disk images to the
> persistent-data directory instead of writing them under the source
> tree. The sandbox mmc, scsi and usb-flash drivers now look there first.
> 
> Further improvement are planned, such as using the context manager when
> creating partitions.

I think this further exposes a problem / feedback I gave a while ago
now. We shouldn't have "distribution" tests, we should have tests that
exercise the various paths in the code.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260518/c496c3bc/attachment.sig>


More information about the U-Boot mailing list