summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2026-03-09 09:13:04 -0600
committerTom Rini <[email protected]>2026-03-23 09:18:30 -0600
commit3691b1e4ce07425dfe3a32c10cfcaf989be57734 (patch)
treec6a741231c072439e04b118a0229005df246ae70 /scripts/basic
parentd030dc34d67acaa51742d549cb83a81256fefac2 (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/basic')
0 files changed, 0 insertions, 0 deletions