]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: Add support to create a fat12 fs
authorChristian Taedcke <christian.taedcke@weidmueller.com>
Wed, 15 Nov 2023 12:44:21 +0000 (13:44 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 29 Nov 2023 01:10:25 +0000 (20:10 -0500)
This enables to implement tests for fat12 filesystem.

Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
test/py/tests/fs_helper.py

index 9882ddb1daa55f122fedc33bd59003ce22cb4a57..0ae7a4c4d7fa54e5c6b8d5d938e0dcd589ed6e13 100644 (file)
@@ -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'