mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
test/py: Have test_usb.py raise an Exception with unsupported filesystems
With a newer pylint we get a warning about how offset could be used before assigned. This is because when the underlying filesystem wasn't one that is supported we would have runtime test failures. Address this by raise'ing an Exception if fs is not supported. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
203d3a9fc7
commit
ea9131d904
1 changed files with 2 additions and 0 deletions
|
@ -580,6 +580,8 @@ def test_usb_load(u_boot_console):
|
|||
elif fs in ['ext4', 'ext2']:
|
||||
file, size, expected_crc32 = \
|
||||
usb_ext4load_ext4write(u_boot_console, fs, x, part)
|
||||
else:
|
||||
raise Exception('Unsupported filesystem type %s' % fs)
|
||||
|
||||
offset = random.randrange(128, 1024, 128)
|
||||
output = u_boot_console.run_command(
|
||||
|
|
Loading…
Add table
Reference in a new issue