diff options
author | Tom Rini <trini@konsulko.com> | 2025-03-20 07:59:25 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-08 13:51:09 -0600 |
commit | 2c092875abfd9269a34b3cc03930066fda53a476 (patch) | |
tree | 31ed5b8caed91ed4b24e25c07d58a028c86f5a2f /test/py/tests/fs_helper.py | |
parent | fce92e304fcd8bdba522a43aeef12cc3b0b2df56 (diff) |
test/py: Fix a problem with setup_image
While we can be passed an image size to use, we always called qemu-img
with 20M as the size. Fix this by using the size parameter.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'test/py/tests/fs_helper.py')
-rw-r--r-- | test/py/tests/fs_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/tests/fs_helper.py b/test/py/tests/fs_helper.py index f3e81b6bc61..2faab21509f 100644 --- a/test/py/tests/fs_helper.py +++ b/test/py/tests/fs_helper.py @@ -95,7 +95,7 @@ def setup_image(ubman, devnum, part_type, img_size=20, second_part=False, try: check_call(f'mkdir -p {mnt}', shell=True) - check_call(f'qemu-img create {fname} 20M', shell=True) + check_call(f'qemu-img create {fname} {img_size}M', shell=True) check_call(f'printf "{spec}" | sfdisk {fname}', shell=True) except CalledProcessError: call(f'rm -f {fname}', shell=True) |