diff options
| author | Simon Glass <[email protected]> | 2026-03-09 09:13:04 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-03-23 09:18:30 -0600 |
| commit | 3691b1e4ce07425dfe3a32c10cfcaf989be57734 (patch) | |
| tree | c6a741231c072439e04b118a0229005df246ae70 /scripts | |
| parent | d030dc34d67acaa51742d549cb83a81256fefac2 (diff) | |
test: Convert fs_helper to use a class
Create a class around mk_fs() (and later setup_image()) to handle the
common tasks of image creation. Many callers of fs_helper.mk_fs()
create their own scratch directories while users of
fs_helper.setup_image() rely on one being returned. Unify this by
adding 'srcdir' as a field while converting to a class.
The class delegates to the existing mk_fs() function for the actual
filesystem creation, adding lifecycle management for scratch
directories and the image file.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
