mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-28 00:11:32 +00:00
test/py: spi: Set the expected error message
If erase/write/read size is 0 then it throws the mentioned error message
when debug message ie enabled as per 899fb5aa8b
("cmd: sf/nand: Print
and return failure when 0 length is passed"), setting it to None as
debug message is not enabled by default for testing.
Signed-off-by: Love Kumar <love.kumar@amd.com>
This commit is contained in:
parent
52ec7b7c89
commit
2349cc00d9
1 changed files with 2 additions and 2 deletions
|
@ -646,7 +646,7 @@ def test_spi_negative(u_boot_console):
|
||||||
|
|
||||||
# If erase size is 0
|
# If erase size is 0
|
||||||
esize = 0
|
esize = 0
|
||||||
error_msg = 'ERROR: Invalid size 0'
|
error_msg = None
|
||||||
flash_ops(
|
flash_ops(
|
||||||
u_boot_console, 'erase', start, esize, 0, 1, error_msg, EXPECTED_ERASE
|
u_boot_console, 'erase', start, esize, 0, 1, error_msg, EXPECTED_ERASE
|
||||||
)
|
)
|
||||||
|
@ -685,7 +685,7 @@ def test_spi_negative(u_boot_console):
|
||||||
# if Write/Read size is 0
|
# if Write/Read size is 0
|
||||||
offset = random.randint(0, 2)
|
offset = random.randint(0, 2)
|
||||||
size = 0
|
size = 0
|
||||||
error_msg = 'ERROR: Invalid size 0'
|
error_msg = None
|
||||||
flash_ops(
|
flash_ops(
|
||||||
u_boot_console, 'write', offset, size, addr, 1, error_msg, EXPECTED_WRITE
|
u_boot_console, 'write', offset, size, addr, 1, error_msg, EXPECTED_WRITE
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue