summaryrefslogtreecommitdiff
path: root/test/test-main.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-07 17:34:52 -0700
committerTom Rini <trini@konsulko.com>2021-03-12 09:57:29 -0500
commit5a986f3feef7ce7f14282f0c6ed2f6c63647a821 (patch)
tree8dfa5a0fc94a64b5b87187cab68ad02fe29bc953 /test/test-main.c
parent4b8b27e3d2f0825c58f9982b36cf941ad007cbda (diff)
downloadu-boot-5a986f3feef7ce7f14282f0c6ed2f6c63647a821.tar.gz
u-boot-5a986f3feef7ce7f14282f0c6ed2f6c63647a821.tar.bz2
u-boot-5a986f3feef7ce7f14282f0c6ed2f6c63647a821.zip
test: Move dm_scan_plat() to test_pre_run()
Move this step over to the pre-run function. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/test-main.c')
-rw-r--r--test/test-main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-main.c b/test/test-main.c
index bd2f08a2b4..fe96d739dc 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -34,6 +34,9 @@ int test_pre_run(struct unit_test_state *uts, struct unit_test *test)
if (!(test->flags & UT_TESTF_DM))
uts->start = mallinfo();
+ if (test->flags & UT_TESTF_SCAN_PDATA)
+ ut_assertok(dm_scan_plat(false));
+
if (test->flags & UT_TESTF_PROBE_TEST)
ut_assertok(do_autoprobe(uts));