u-boot/test
Andrew Goodbody 3c6a3e99b3 test/py: memtest: Fix test for non-trivial parameters
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]]]]

The fix is to ensure that all the parameters to the mtest command are
passed as hexadecimal values.

Fixes: 22efc1cf27 ("test/py: memtest: Add tests for mtest command")
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Love Kumar <love.kumar@amd.com>
2025-04-10 11:57:59 -06:00
..
boot boot: Consider non-bootable partitions 2025-04-03 11:41:55 -06:00
cmd test: Drop suites.h 2025-02-11 20:12:36 -06:00
common test: event: Correct usage of IS_ENABLED() macro in test/common/event.c 2025-03-13 14:21:42 -06:00
dm Merge patch series "x86: Improve operation under QEMU" 2025-04-03 11:43:38 -06:00
env test: Drop suites.h 2025-02-11 20:12:36 -06:00
fdt_overlay test: Drop suites.h 2025-02-11 20:12:36 -06:00
fs test: fs: fs-test: Move the tests to use sha256sum 2024-01-11 21:19:25 -05:00
fuzz global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
hush test: Drop the function for running hush tests 2025-01-24 14:34:40 -06:00
image spl: Create a function to init spl_load_info 2024-08-23 15:58:42 -06:00
lib Merge patch series "membuff: Add tests and update to support a flag for empty/full" 2025-04-03 16:54:59 -06:00
log test: Drop suites.h 2025-02-11 20:12:36 -06:00
optee test: Drop suites.h 2025-02-11 20:12:36 -06:00
py test/py: memtest: Fix test for non-trivial parameters 2025-04-10 11:57:59 -06:00
stdint Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
cmd_ut.c test: Update documentation 2025-02-11 20:12:36 -06:00
Kconfig test: Make all tests depend on UNIT_TEST 2025-02-11 20:10:59 -06:00
Makefile test: Move fdt-overlay-test rule into test/ 2025-02-11 20:10:59 -06:00
run test: Run the VPL tests with 'make check' 2023-04-03 06:53:53 +12:00
test-main.c test: Allow running a selection of suites 2025-02-11 20:12:36 -06:00
ut.c test: Move stats into a struct 2025-01-24 14:34:41 -06:00