test: Add ut_run_test_live_flat() to run tests twice
authorSimon Glass <sjg@chromium.org>
Mon, 8 Mar 2021 00:35:03 +0000 (17:35 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 14:57:30 +0000 (09:57 -0500)
commitd2281bb09b0ebf580f8efe23c84c240a2f3ea9bb
treebcb418ce6d700444bad4f3b9992a21b91166b21f
parentc169d542bbecb02b04e39ed3424a88a0bd0b7620
test: Add ut_run_test_live_flat() to run tests twice

Driver model tests are generally run twice, once with livetree enable and
again with it disabled. Add a function to handle this and call it from the
driver model test runner.

Make ut_run_test() private since it is not used outside test-main.c now.

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