]> git.baikalelectronics.ru Git - uboot.git/commitdiff
dm: core: Call dm_scan_other() when setting up for tests
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jul 2022 21:52:26 +0000 (15:52 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 12 Aug 2022 12:17:11 +0000 (08:17 -0400)
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>
test/test-main.c

index c0d0378c5d818c3126a3a47c50a7895b1b150d55..31837e57a8fb323a3cd835b4a495d51bb2375e0d 100644 (file)
@@ -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));