From: Simon Glass <[email protected]>

Refactor the test filesystem helper into a class-based design, reducing
duplication and making it easier to create disk images for testing. Add
a helper class for creating disk images with partition tables.

Convert a test over to use it. Provide a few other minor improvements as
well.

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
- Explain why setup_image() is left to later

Simon Glass (7):
  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: Add a helper class to create disk images
  test: Convert test_efi_bootmgr to use FsHelper

 test/py/tests/fs_helper.py        | 310 +++++++++++++++++++++++++-----
 test/py/tests/test_efi_bootmgr.py |  38 ++--
 2 files changed, 273 insertions(+), 75 deletions(-)

-- 
2.43.0

base-commit: f6963fc232603007c661411fb31c57f1a9678a87
branch: testfs2

Reply via email to