]> git.baikalelectronics.ru Git - uboot.git/commit
test: Handle driver model reinit in test_pre_run()
authorSimon Glass <sjg@chromium.org>
Mon, 8 Mar 2021 00:34:56 +0000 (17:34 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 14:57:30 +0000 (09:57 -0500)
commit88443258c5f42b5a253b075a8e2cd74558ebc086
tree7496d35d4a59e8e3bb34d35dc918c4d61c956565
parent1aa0b634c907405bae272959529a77461484cddd
test: Handle driver model reinit in test_pre_run()

For driver model tests we want to reinit the data structures so that
everything is in a known state before the test runs. This avoids one test
changing something that breaks a subsequent tests.

Move the call for this into test_pre_run().

Signed-off-by: Simon Glass <sjg@chromium.org>
include/test/test.h
include/test/ut.h
test/dm/test-dm.c
test/test-main.c