mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 19:11:37 +00:00
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: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fe3f6a65fe
commit
b6227d3993
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,11 @@ static int dm_test_main(const char *test_name)
|
||||||
|
|
||||||
printf("Failures: %d\n", uts->fail_count);
|
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;
|
return uts->fail_count ? CMD_RET_FAILURE : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue