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

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.

As this test already had a number of internal functions, add a
prepare_image function to do this part of the test.

Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
test/py/tests/test_eficonfig.py [moved from test/py/tests/test_eficonfig/test_eficonfig.py with 88% similarity]
test/py/tests/test_eficonfig/conftest.py [deleted file]