summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-17 10:48:02 -0700
committerTom Rini <trini@konsulko.com>2023-01-23 18:11:41 -0500
commit081bdc52c158dd3a4f73910cde3d7e70a5932d56 (patch)
tree9698094a3e2a36c06e054c17d9e820d0cb11017f /test
parent22061d3d2ad10e1c67e36282a8c97f505a62c252 (diff)
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.c1
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));
}