test: Add functions to init and uninit the test state
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:25 +0000 (14:25 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jan 2025 20:34:39 +0000 (14:34 -0600)
commit7b576f0847659c22bd938e4f4885324f88a16e74
tree7bea76e83f693abdf6c874c3095d2184dc95f765
parent238ba333c369b6cc521527e0783e6ac24368569f
test: Add functions to init and uninit the test state

Move these operations into separate functions so that it is clearer what
is needed. These functions can also be called from somewhere other than
ut_run_list().

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