u-boot/test
Mattijs Korpershoek e92b5d0ddf test: boot: Set DM|SCAN_FDT flags for bootmeth_{cros,android}
We make fewer calls to dm_test_restore() since
commit fbdac8155c ("test: Expand implementation of ut_list_has_dm_tests()")

Because of this some valid test combinations are now broken:

$ ./test/py/test.py --bd sandbox --build -k test_ut
$ ./test/py/test.py --bd sandbox --build -k "bootflow_android or bootflow_cros"

Shows:

  Expected '  2  cros         ready   mmc          4 mmc5.bootdev.part_4       ',
  got '  2  cros         ready   mmc          2 mmc5.bootdev.part_2       '

Here prep_mmc_bootdev() is called twice and it will bind bootmeth_cros twice.

Since bootmeth_cros is bound twice, 'bootflow scan' will find 2x the
expected bootflows.

Before
commit fbdac8155c ("test: Expand implementation of ut_list_has_dm_tests()")
this did not happen because a cleanup was called each time.

Add UTF_DM and UTF_SCAN_FDT flags to both tests to make sure that the
bootmeths are unbound after the test finishes.

Fixes: fbdac8155c ("test: Expand implementation of ut_list_has_dm_tests()")
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-11-22 14:37:21 -06:00
..
boot test: boot: Set DM|SCAN_FDT flags for bootmeth_{cros,android} 2024-11-22 14:37:21 -06:00
cmd test: cmd/hash: check return value of ut_check_console_line 2024-11-18 19:10:56 -06:00
common test: print_printf() must check availability of %ls 2024-11-14 18:14:06 -06:00
dm dm: core: Add a function to see if a device exists 2024-11-03 21:27:12 -06:00
env test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -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/hush: Add CONFIG_CONSOLE_RECORD where required 2024-10-29 16:17:47 -06:00
image spl: Create a function to init spl_load_info 2024-08-23 15:58:42 -06:00
lib Merge patch series "test: Tidy up the test/ directory" 2024-11-13 16:02:58 -06:00
log Merge patch series "Tidy up console recording in tests" 2024-08-26 18:52:18 -06:00
optee Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
overlay test/overlay: Make this depend on SANDBOX 2024-08-23 15:59:39 -06:00
py test/py: spi: Rephrase the warning/error messages 2024-11-15 13:11:29 -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: Move time tests into the lib suite 2024-11-13 11:56:02 -06:00
Kconfig test: Remove ASN1 library test 2024-10-14 17:58:52 -06:00
Makefile test: Move time_ut test into lib 2024-11-13 11:56:02 -06:00
run test: Run the VPL tests with 'make check' 2023-04-03 06:53:53 +12:00
test-main.c Merge patch series "test: Tidy up the test/ directory" 2024-11-13 16:02:58 -06:00
ut.c test: Fail when an empty line is expected but not present 2024-08-26 18:51:48 -06:00