[PATCH] test/py: spi: Set the expected error message

Love Kumar love.kumar at amd.com
Thu Aug 29 09:33:12 CEST 2024


If erase/write/read size is 0 then it throws the mentioned error message
when debug message ie enabled as per "899fb5aa8becc159b1eb086d8828c4e8eb28f121"
, setting it to None as debug message is not enabled by default for
testing.

Signed-off-by: Love Kumar <love.kumar at amd.com>
---
 test/py/tests/test_spi.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py
index c81eca5fba6e..3160d58540f2 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
         )
-- 
2.25.1



More information about the U-Boot mailing list