[PATCH] test/py: spi: Add tests for SPI flash device

Tom Rini trini at konsulko.com
Mon Jan 29 18:54:45 CET 2024


On Fri, Jan 19, 2024 at 08:06:54PM +0530, Love Kumar wrote:

> Add test cases for sf commands to verify various SPI flash operations
> such as erase, write and read. It also adds qspi lock unlock cases.
> This test relies on boardenv_* configurations to run it for different
> SPI flash family such as single SPI, QSPI, and OSPI.
> 
> Signed-off-by: Love Kumar <love.kumar at amd.com>
> ---
>  test/py/tests/test_spi.py | 626 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 626 insertions(+)
>  create mode 100644 test/py/tests/test_spi.py

This has a number of pylint errors:
test/py/tests/test_spi.py:253:4: E1120: No value for argument 'erase_size' in function call (no-value-for-parameter)
test/py/tests/test_spi.py:253:4: E1120: No value for argument 'total_size' in function call (no-value-for-parameter)
test/py/tests/test_spi.py:376:46: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:381:24: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:385:47: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:389:39: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:419:77: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:420:19: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:422:12: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:422:68: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:425:25: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:447:56: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:449:25: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:451:16: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:451:78: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:454:31: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:479:77: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:480:19: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:482:12: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:482:68: E0602: Undefined variable 'erase_size' (undefined-variable)
test/py/tests/test_spi.py:485:25: E0602: Undefined variable 'erase_size' (undefined-variable)

Please see .azure-pipelines for how to run pylint, if needed.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240129/4fef8448/attachment.sig>


More information about the U-Boot mailing list