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 <tr...@konsulko.com> --- Changes in v2: - Rebase on next after the ubman series. - Only the image size parameter not being used in all cases was a problem, drop the other half of this patch. --- test/py/tests/fs_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/fs_helper.py b/test/py/tests/fs_helper.py index f3e81b6bc61b..2faab21509fa 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) -- 2.43.0