diff options
author | Simon Glass <sjg@chromium.org> | 2022-07-30 15:52:26 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-12 08:17:11 -0400 |
commit | ee8ab07e3039d945889dccd8e8ab7adfb9f8c30c (patch) | |
tree | 8a5771c2f2560c6429a153d97d59b0e6612a1a72 | |
parent | 2b80bc1eee28c20173c09ee5d887cce02097552f (diff) | |
download | u-boot-ee8ab07e3039d945889dccd8e8ab7adfb9f8c30c.zip u-boot-ee8ab07e3039d945889dccd8e8ab7adfb9f8c30c.tar.gz u-boot-ee8ab07e3039d945889dccd8e8ab7adfb9f8c30c.tar.bz2 |
dm: core: Call dm_scan_other() when setting up for tests
At present this function is not called, so tests miss out on any devices
created by it. Add it in so that tests can rely on these extra devices.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | test/test-main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test-main.c b/test/test-main.c index c0d0378..31837e5 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -228,8 +228,10 @@ static int test_pre_run(struct unit_test_state *uts, struct unit_test *test) uts->start = mallinfo(); - if (test->flags & UT_TESTF_SCAN_PDATA) + if (test->flags & UT_TESTF_SCAN_PDATA) { ut_assertok(dm_scan_plat(false)); + ut_assertok(dm_scan_other(false)); + } if (test->flags & UT_TESTF_PROBE_TEST) ut_assertok(do_autoprobe(uts)); |