[PATCH v3 6/9] test: Add support to create a fat12 fs

christian.taedcke-oss at weidmueller.com christian.taedcke-oss at weidmueller.com
Wed Nov 15 13:44:21 CET 2023


From: Christian Taedcke <christian.taedcke at weidmueller.com>

This enables to implement tests for fat12 filesystem.

Signed-off-by: Christian Taedcke <christian.taedcke at weidmueller.com>
---

(no changes since v1)

 test/py/tests/fs_helper.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/py/tests/fs_helper.py b/test/py/tests/fs_helper.py
index 9882ddb1da..0ae7a4c4d7 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'
-- 
2.34.1



More information about the U-Boot mailing list