]> git.ipfire.org Git - thirdparty/u-boot.git/commit
test: fs_helper: Skip empty srcdir when creating a filesystem
authorSimon Glass <sjg@chromium.org>
Sat, 4 Apr 2026 14:03:06 +0000 (08:03 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 21 Apr 2026 21:30:38 +0000 (15:30 -0600)
commit4e1793b1fb21e3896cf018fc35fc2c9c3e202138
tree0c3f3294fe8427f1c78d393a956f5b5e2bc847db
parent7c69117337412d2477bc3f72e4042bca4a4e66b3
test: fs_helper: Skip empty srcdir when creating a filesystem

FsHelper.mk_fs() always creates a srcdir via setup(), then passes it
to the module-level mk_fs(). This fails for filesystem types like ext2
that do not support the -d flag, raising ValueError even when no files
need to be copied.

Pass None for src_dir when the srcdir is empty, so that creating an
empty filesystem works for all supported types.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/tests/fs_helper.py