[PATCH] test/py: memtest: Fix test for non-trivial parameters
Tom Rini
trini at konsulko.com
Thu Apr 10 22:14:18 CEST 2025
On Fri, 28 Mar 2025 16:30:37 +0000, Andrew Goodbody wrote:
> When using non-trivial values for parameters for this test it
> will cause a spurious failure as the test passes a decimal value
> to the mtest command which will interpret it as hexadecimal and
> result in failure as below.
>
> test/py/tests/test_memtest.py:66: in test_memtest_ddr
> assert expected_response in response
> E AssertionError: assert 'Tested 16 iteration(s) with 0 errors.' in 'Refusing to do empty test\r\nmtest - simple RAM read/write test\r\n\r\nUsage:\r\nmtest [start [end [pattern [iterations]]]]'
> ----------------------------- Captured stdout call -----------------------------
> U-Boot> mtest 134217728 0x8001000 90 0x10
> Refusing to do empty test
> mtest - simple RAM read/write test
> Usage:
> mtest [start [end [pattern [iterations]]]]
>
> [...]
Applied to u-boot/master, thanks!
[1/1] test/py: memtest: Fix test for non-trivial parameters
commit: 3c6a3e99b398558b6bfb1362a44fbf0e07e2539e
--
Tom
More information about the U-Boot
mailing list