From: Love Kumar Date: Mon, 2 Sep 2024 18:38:17 +0000 (+0530) Subject: test/py: spi: Set the expected error message X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=2349cc00d907253d88ff2340690d3159d49811f0;p=u-boot.git 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 --- diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py index c81eca5fba..3160d58540 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 )