]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: Convert test_ut_dm_init() to use FsHelper
authorSimon Glass <sjg@chromium.org>
Sat, 4 Apr 2026 14:03:15 +0000 (08:03 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 21 Apr 2026 21:30:38 +0000 (15:30 -0600)
Use the helper here, for consistency.

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

index ad84fb56b8570882bc70e2d8ab004c8083b5e539..9b7f1c6f3fc1c7cf73478e1f9854bea1c3ffc8c2 100644 (file)
@@ -542,8 +542,8 @@ def test_ut_dm_init(ubman):
         utils.run_and_log(
             ubman, f'sfdisk {fn}', stdin=b'type=83')
 
-    fs_helper.mk_fs(ubman.config, 'ext2', 0x200000, '2MB', None)
-    fs_helper.mk_fs(ubman.config, 'fat32', 0x100000, '1MB', None)
+    FsHelper(ubman.config, 'ext2', 2, '2MB').mk_fs()
+    FsHelper(ubman.config, 'fat32', 1, '1MB').mk_fs()
 
     mmc_dev = 6
     fn = os.path.join(ubman.config.source_dir, f'mmc{mmc_dev}.img')