aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Taedcke <christian.taedcke@weidmueller.com>2023-11-15 13:44:21 +0100
committerTom Rini <trini@konsulko.com>2023-11-28 20:10:25 -0500
commit764b4118248617d4a30a1d3eb74a5eacb1386486 (patch)
treee29a898a8d8e881c84228ab9016b54f4e6781d2f
parentc489937a6f08af019f5478455ddb4e0b8ecaf6ce (diff)
downloadu-boot-764b4118248617d4a30a1d3eb74a5eacb1386486.zip
u-boot-764b4118248617d4a30a1d3eb74a5eacb1386486.tar.gz
u-boot-764b4118248617d4a30a1d3eb74a5eacb1386486.tar.bz2
test: Add support to create a fat12 fs
This enables to implement tests for fat12 filesystem. Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
-rw-r--r--test/py/tests/fs_helper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/py/tests/fs_helper.py b/test/py/tests/fs_helper.py
index 9882ddb..0ae7a4c 100644
--- a/test/py/tests/fs_helper.py
+++ b/test/py/tests/fs_helper.py
@@ -24,7 +24,9 @@ def mk_fs(config, fs_type, size, prefix):
fs_img = f'{prefix}.{fs_type}.img'
fs_img = os.path.join(config.persistent_data_dir, fs_img)
- if fs_type == 'fat16':
+ if fs_type == 'fat12':
+ mkfs_opt = '-F 12'
+ elif fs_type == 'fat16':
mkfs_opt = '-F 16'
elif fs_type == 'fat32':
mkfs_opt = '-F 32'