aboutsummaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-09-25 17:20:11 -0400
committerTom Rini <trini@konsulko.com>2022-09-25 17:20:11 -0400
commit9114b7cee817789ad59e0fb6d5cd57f50668b4e1 (patch)
treea6bd3d83314fee80b1b1a2e9a39df39d96a2dcc8 /test/py
parent81da5042e514bfd27516d3530dde4d62a6708ca4 (diff)
parent22c80d5603ac4c58debc8c776b8f138e76cf5f7c (diff)
Merge tag 'dm-next-25sep22' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm into next
sandbox SCSI conversion to driver model final patch for blk improvements
Diffstat (limited to 'test/py')
-rw-r--r--test/py/tests/test_ut.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/py/tests/test_ut.py b/test/py/tests/test_ut.py
index 35fb393c1f..9d42390373 100644
--- a/test/py/tests/test_ut.py
+++ b/test/py/tests/test_ut.py
@@ -114,6 +114,15 @@ def test_ut_dm_init(u_boot_console):
with open(fn, 'wb') as fh:
fh.write(data)
+ # Create a file with a single partition
+ fn = u_boot_console.config.source_dir + '/scsi.img'
+ if not os.path.exists(fn):
+ data = b'\x00' * (2 * 1024 * 1024)
+ with open(fn, 'wb') as fh:
+ fh.write(data)
+ u_boot_utils.run_and_log(
+ u_boot_console, f'sfdisk {fn}', stdin=b'type=83')
+
@pytest.mark.buildconfigspec('cmd_bootflow')
def test_ut_dm_init_bootstd(u_boot_console):
"""Initialise data for bootflow tests"""