diff options
| author | Denis Mukhin <[email protected]> | 2026-06-23 15:06:30 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-03 10:14:25 -0600 |
| commit | 93e9af685fefc454580dcf567b03c139a2fe8ebc (patch) | |
| tree | 5c341a5b2908aab52ace915bde5b60ebdbe922d0 /test/boot/bootstd_common.h | |
| parent | 264ba13f14767fbe7a881d25167d305fa5d7f6b6 (diff) | |
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]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'test/boot/bootstd_common.h')
| -rw-r--r-- | test/boot/bootstd_common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/boot/bootstd_common.h b/test/boot/bootstd_common.h index dd769313a84..672917454a3 100644 --- a/test/boot/bootstd_common.h +++ b/test/boot/bootstd_common.h @@ -21,8 +21,11 @@ #define TEST_VERNUM 0x00010002 enum { - MAX_HUNTER = 8, MMC_HUNTER = 2, /* ID of MMC hunter */ + HOST_HUNTER = 5, + SCSI_HUNTER = 6, + USB_HUNTER = 8, + MAX_HUNTER = 9, }; struct unit_test_state; |
