mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
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>
This commit is contained in:
parent
4b8b27e3d2
commit
5a986f3fee
@ -74,8 +74,6 @@ static int dm_do_test(struct unit_test_state *uts, struct unit_test *test,
|
||||
ut_assertok(dm_test_init(uts, of_live));
|
||||
|
||||
uts->start = mallinfo();
|
||||
if (test->flags & UT_TESTF_SCAN_PDATA)
|
||||
ut_assertok(dm_scan_plat(false));
|
||||
|
||||
ut_assertok(test_pre_run(uts, test));
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user