Compare commits

...

1 Commits
ru2 ... loadf

Author SHA1 Message Date
Simon Glass
d587b852ff test: Allow use of FsHelper without a config
This class is used by the build-efi/qemu scripts, so allow it to work
outside the context of a test.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-08-02 13:51:53 -06:00

View File

@@ -63,7 +63,8 @@ class FsHelper:
# Use a default filename; the caller can adjust it
leaf = f'{prefix}.{fs_type}.img'
self.fs_img = os.path.join(config.persistent_data_dir, leaf)
self.fs_img = os.path.join(
config.persistent_data_dir if config else '', leaf)
# Some distributions do not add /sbin to the default PATH, where mkfs
# lives