Move this step over to the pre-run function.
Signed-off-by: Simon Glass <sjg@chromium.org>
ut_assertok(dm_scan_plat(false));
if (test->flags & UT_TESTF_PROBE_TEST)
ut_assertok(do_autoprobe(uts));
- if (!CONFIG_IS_ENABLED(OF_PLATDATA) &&
- (test->flags & UT_TESTF_SCAN_FDT))
- ut_assertok(dm_extended_scan(false));
ut_assertok(test_pre_run(uts, test));
#include <common.h>
#include <console.h>
+#include <dm.h>
+#include <dm/root.h>
#include <test/test.h>
+#include <test/ut.h>
DECLARE_GLOBAL_DATA_PTR;
if (!(test->flags & UT_TESTF_DM))
uts->start = mallinfo();
+ if (!CONFIG_IS_ENABLED(OF_PLATDATA) &&
+ (test->flags & UT_TESTF_SCAN_FDT))
+ ut_assertok(dm_extended_scan(false));
+
if (test->flags & UT_TESTF_CONSOLE_REC) {
int ret = console_record_reset_enable();