Hi Denis, On 2026-06-23T22:06:29, None <[email protected]> wrote: > test: bootdev: scan with a broken high-priority device > > Add bootdev_hunt_fallthrough() test to verify that 'bootflow scan -l' > falls back to a lower-priority bootdev when a higher-priority hunter > fails. > > Introduce a simple 'sandbox-bootdev' device for the test. The new > bootdev can be configured to produce an error at the hunting stage. > > Introduce new host_set_flags_by_label() API and a flags field to > 'host_sb_plat' to simulate a bootdev hunter failure for the test. > > Adjust boot{dev,flow} tests which depend on bootdev hunters. > > Signed-off-by: Denis Mukhin <[email protected]> > > drivers/block/Makefile | 2 +- > drivers/block/host-uclass.c | 15 +++++++++ > drivers/block/sandbox-bootdev.c | 73 > +++++++++++++++++++++++++++++++++++++++++ > include/sandbox_host.h | 18 ++++++++++ > test/boot/bootdev.c | 23 ++++++------- > test/boot/bootflow.c | 47 ++++++++++++++++++++++++++ > test/boot/bootstd_common.h | 5 ++- > 7 files changed, 170 insertions(+), 13 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

