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

Attachment: signature.asc
Description: PGP signature

Reply via email to