Create a class around mk_fs() to handle the common tasks of image creation, such as managing scratch directories and cleaning up.
Start with a few small cleanups to mk_fs(), then convert the helper to use a class. Changes in v4: - Use an explicit list for fs_type validation - Drop 'test: Add a helper class to create disk images' - Drop 'test: Convert test_efi_bootmgr to use FsHelper' Changes in v3: - Rewrite the commit message as suggested by Tom Rini - Make the class a thin wrapper that delegates to mk_fs() Changes in v2: - Split the quiet flag into a separate commit - Fix fs_img to accept only a leaf name, always under persistent_data_dir - Add new patch to split the quiet flag out of the previous patch - Split the pylint fix into a separate commit Simon Glass (5): test: fs_helper: Allow passing the image filename test: fs_helper: Add a quiet flag to mk_fs() test: Update comment for fs_helper.setup_image() test: fs_helper: Drop the size_gran argument test: Convert fs_helper to use a class test/py/tests/fs_helper.py | 111 ++++++++++++++++++++++++++++++++++--- 1 file changed, 103 insertions(+), 8 deletions(-) -- 2.43.0 base-commit: c0ca147ac6228949a6d6497531c9f2f4a0dc6c67 branch: testfs4

