projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe3f6a6
)
test: dm: Recover the driver model tree after tests
author
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 20 May 2015 19:27:35 +0000
(14:27 -0500)
committer
Tom Rini
<trini@konsulko.com>
Thu, 21 May 2015 13:16:18 +0000
(09:16 -0400)
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>
test/dm/test-main.c
patch
|
blob
|
history
diff --git
a/test/dm/test-main.c
b/test/dm/test-main.c
index 53c3a6ebbd41fc814ce09c9bb2b967ed263069bf..0477d2fa735d423d880fcfc2da8042db38344f38 100644
(file)
--- a/
test/dm/test-main.c
+++ b/
test/dm/test-main.c
@@
-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;
}