u-boot/test/boot
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
..
files expo: Support menu-item values in cedit 2024-10-18 14:10:22 -06:00
bootdev.c test: efi: boot: Set up an image suitable for EFI testing 2024-11-09 10:01:47 +01:00
bootflow.c test: boot: Set DM|SCAN_FDT flags for bootmeth_{cros,android} 2024-11-22 14:37:21 -06:00
bootm.c Merge patch series "test: Tidy up the test/ directory" 2024-11-13 16:02:58 -06:00
bootmeth.c test: Add tests for the bootmeth set command 2024-10-15 11:38:43 -06:00
bootstd_common.c bootstd: Create a function to reset USB 2024-09-18 13:00:59 -06:00
bootstd_common.h bootstd: Create a function to reset USB 2024-09-18 13:00:59 -06:00
cedit.c expo: Support menu-item values in cedit 2024-10-18 14:10:22 -06:00
expo.c expo: Drop scene_title_set() 2024-10-18 14:10:22 -06:00
image.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Makefile bootm: test: Move test into boot 2024-11-13 11:56:01 -06:00
measurement.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
upl.c test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
vbe_fixup.c test: Rename unit-test flags 2024-08-26 18:51:48 -06:00
vbe_simple.c test: Rename unit-test flags 2024-08-26 18:51:48 -06:00