summaryrefslogtreecommitdiff
path: root/test/py/tests/test_spi.py
diff options
context:
space:
mode:
authorLove Kumar <love.kumar@amd.com>2024-09-03 00:08:17 +0530
committerTom Rini <trini@konsulko.com>2024-09-10 13:15:06 -0600
commit2349cc00d907253d88ff2340690d3159d49811f0 (patch)
tree257d7a02ead2376410f4d40b7ff9e4dd65caf785 /test/py/tests/test_spi.py
parent52ec7b7c89ff1256daed551012e378df7fce4564 (diff)
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 899fb5aa8bec ("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>
Diffstat (limited to 'test/py/tests/test_spi.py')
-rw-r--r--test/py/tests/test_spi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py
index c81eca5fba6..3160d58540f 100644
--- a/test/py/tests/test_spi.py
+++ b/test/py/tests/test_spi.py
@@ -646,7 +646,7 @@ def test_spi_negative(u_boot_console):
# If erase size is 0
esize = 0
- error_msg = 'ERROR: Invalid size 0'
+ error_msg = None
flash_ops(
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
offset = random.randint(0, 2)
size = 0
- error_msg = 'ERROR: Invalid size 0'
+ error_msg = None
flash_ops(
u_boot_console, 'write', offset, size, addr, 1, error_msg, EXPECTED_WRITE
)