]> git.dujemihanovic.xyz Git - u-boot.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)
commit72b524cf426697e764c9c63611d0f6743f50f0f5
tree7496d35d4a59e8e3bb34d35dc918c4d61c956565
parent47ec3ede4efe214b4debdaf845d6eb622154f405
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