[U-Boot] [PATCH v4 22/26] test: dm: Recover the driver model tree after tests
Joe Hershberger
joe.hershberger at ni.com
Thu May 7 11:49:13 CEST 2015
Put the driver model for the system back into a good state after
completing the DM testing.
Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
Acked-by: Simon Glass <sjg at chromium.org>
---
Changes in v4: None
Changes in v3:
-New for version 3
Changes in v2: None
test/dm/test-main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index a8d7db2..fd84060 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -112,6 +112,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;
}
--
1.7.11.5
More information about the U-Boot
mailing list