diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-20 14:27:35 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-05-21 09:16:18 -0400 |
commit | b6227d3993db8f1763a8bd377b189e7b77cfe885 (patch) | |
tree | 5ec6bfc8f6b63c03aa90ea14ef625f12e8883a7b /test | |
parent | fe3f6a65fef8d2f7f388f3a584e02dad54ff72a7 (diff) | |
download | u-boot-imx-b6227d3993db8f1763a8bd377b189e7b77cfe885.zip u-boot-imx-b6227d3993db8f1763a8bd377b189e7b77cfe885.tar.gz u-boot-imx-b6227d3993db8f1763a8bd377b189e7b77cfe885.tar.bz2 |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/test-main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/dm/test-main.c b/test/dm/test-main.c index 53c3a6e..0477d2f 100644 --- 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; } |