mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
test/py: usb: Fix format string for fstype command
USB tests on ext partitions can fail with the following output
test/py/tests/test_usb.py:245: in test_usb_part
'fstype usb %d:%d' % i, part_id
E TypeError: not enough arguments for format string
So add brackets around the format string arguments to prevent the
error.
Fixes: a730947974
("test/py: usb: Distinguish b/w ext2/ext4 partitions")
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Love Kumar <love.kumar@amd.com>
This commit is contained in:
parent
7764d7d653
commit
eaa51d0fda
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ def test_usb_part(u_boot_console):
|
|||
elif part_type == '83':
|
||||
print('ext(2/4) detected')
|
||||
output = u_boot_console.run_command(
|
||||
'fstype usb %d:%d' % i, part_id
|
||||
'fstype usb %d:%d' % (i, part_id)
|
||||
)
|
||||
if 'ext2' in output:
|
||||
part_ext2.append(part_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue