test: Move test running into a separate function
authorSimon Glass <sjg@chromium.org>
Mon, 8 Mar 2021 00:35:00 +0000 (17:35 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 14:57:30 +0000 (09:57 -0500)
commit99a88fe1bd98ad800ec0460e3174c2a846a991fe
tree8ab083a1a48489090d3f315dbda4a55f5a251329
parente77615d3a78f43793f27cd4dbe04efc6522a05ef
test: Move test running into a separate function

Add a function to handle the preparation for running a test and the
post-test clean-up.

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