test: Call test_pre/post_run() from driver model tests
authorSimon Glass <sjg@chromium.org>
Mon, 8 Mar 2021 00:34:49 +0000 (17:34 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 14:57:29 +0000 (09:57 -0500)
commit30a0d2064d593bf357282071a938816de876c64b
tree1ffba2c09c279767da8cbffcfa917069abe25654
parentd002a2764418fa8f054d94789e7814f60294318f
test: Call test_pre/post_run() from driver model tests

Ultimately we want to get rid of the special driver model test init and
use test_pre_run() and test_post_run() for all tests. As a first step,
use those function to handle console recording.

For now we need a special case for setting uts->start, but that wil go
away once all init is in one place.

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