Skip to content

Commit

Permalink
test: dm: Recover the driver model tree after tests
Browse files Browse the repository at this point in the history
Put the driver model for the system back into a good state after
completing the DM testing.

Signed-off-by: Joe Hershberger <[email protected]>
Acked-by: Simon Glass <[email protected]>
  • Loading branch information
jhershbe authored and trini committed May 21, 2015
1 parent fe3f6a6 commit b6227d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/dm/test-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b6227d3

Please sign in to comment.