Skip to content
Snippets Groups Projects
Commit b6227d39 authored by Joe Hershberger's avatar Joe Hershberger Committed by Tom Rini
Browse files

test: dm: Recover the driver model tree after tests


Put the driver model for the system back into a good state after
completing the DM testing.

Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent fe3f6a65
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,11 @@ static int dm_test_main(const char *test_name)
printf("Failures: %d\n", uts->fail_count);
gd->dm_root = NULL;
ut_assertok(dm_init());
dm_scan_platdata(false);
dm_scan_fdt(gd->fdt_blob, false);
return uts->fail_count ? CMD_RET_FAILURE : 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment