mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 11:24:42 +00:00
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>
This commit is contained in:
parent
2b80bc1eee
commit
ee8ab07e30
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue