diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 20:48:02 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-24 02:11:41 +0300 |
commit | 081bdc52c158dd3a4f73910cde3d7e70a5932d56 (patch) | |
tree | 9698094a3e2a36c06e054c17d9e820d0cb11017f /test | |
parent | 22061d3d2ad10e1c67e36282a8c97f505a62c252 (diff) | |
download | u-boot-081bdc52c158dd3a4f73910cde3d7e70a5932d56.tar.xz |
sandbox: Allow SPI flash bootdevs to be disabled for tests
Most tests don't want these and they can create a lot of noise. Add a way
to disable them. Use that in tests, with a flag provided to enable them
for tests that need this feature.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/test-main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-main.c b/test/test-main.c index 9d0f6643d5..ea959f4e85 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -309,6 +309,7 @@ static int test_pre_run(struct unit_test_state *uts, struct unit_test *test) * only set this if we know the ethernet uclass will be created */ eth_set_enable_bootdevs(test->flags & UT_TESTF_ETH_BOOTDEV); + test_sf_set_enable_bootdevs(test->flags & UT_TESTF_SF_BOOTDEV); ut_assertok(dm_extended_scan(false)); } |