mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
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>
This commit is contained in:
parent
fce92e304f
commit
2c092875ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue