summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-02-05 13:04:26 +0000
committerTom Rini <[email protected]>2025-02-10 10:27:44 -0600
commiteaa51d0fda433c35e0c1d253c399e27d7a4c4765 (patch)
tree362923a97fce7528650bf1fe9781ad9cc9845a90 /test
parent7764d7d65383ca3557e0c1cff40bbb716bbb79e1 (diff)
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: a730947974e3 ("test/py: usb: Distinguish b/w ext2/ext4 partitions") Signed-off-by: Andrew Goodbody <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Reviewed-by: Love Kumar <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/py/tests/test_usb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/tests/test_usb.py b/test/py/tests/test_usb.py
index e1f203b5cbc..566d73b7c64 100644
--- a/test/py/tests/test_usb.py
+++ b/test/py/tests/test_usb.py
@@ -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)