test/py: Rework test_efi_capsule to not use virt-make-fs
authorTom Rini <trini@konsulko.com>
Thu, 20 Mar 2025 13:59:28 +0000 (07:59 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 8 Apr 2025 19:51:09 +0000 (13:51 -0600)
commit27cca9e5d3a09d234db1a289cc1d19aec71b6910
tree0cb4a0f72606bc79bfe078532281c7a72455c88b
parent397fc80b9fc2c6831beaaf92d66d725ca33837e6
test/py: Rework test_efi_capsule to not use virt-make-fs

FIXME: Reword more

The problem with using "virt-make-fs" to make a filesystem image is that
it is extremely slow. Switch to using the fs_helper functions we have
instead from the filesystem tests as these can add files to images and
are significantly faster and still do not require root access.

The main change here is that our mount point directory has changed from
"test_efi_capsule" to "scratch" and so we need to update other functions
too. As the disk image that we get created doesn't have a GPT, invoke
sgdisk to do a conversion first.

Signed-off-by: Tom Rini <trini@konsulko.com>
test/py/tests/test_efi_capsule/capsule_common.py
test/py/tests/test_efi_capsule/conftest.py