diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-08 03:35:01 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 17:57:30 +0300 |
commit | ca44ca0556a29934de6356cd70a1b10f9a13c15c (patch) | |
tree | 915c94e387f6f32330070c14dea900a33daf7104 /include/test | |
parent | 99a88fe1bd98ad800ec0460e3174c2a846a991fe (diff) | |
download | u-boot-ca44ca0556a29934de6356cd70a1b10f9a13c15c.tar.xz |
test: Use ut_run_test() to run driver model tests
Instead of having a separate function for running driver model tests, use
the common one. Make the pre/post-run functions private since we don't
need these outside of test-main.c
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/test')
-rw-r--r-- | include/test/ut.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/test/ut.h b/include/test/ut.h index 98f699cbba..adef0b7e1c 100644 --- a/include/test/ut.h +++ b/include/test/ut.h @@ -368,26 +368,6 @@ void ut_unsilence_console(struct unit_test_state *uts); void ut_set_skip_delays(struct unit_test_state *uts, bool skip_delays); /** - * test_pre_run() - Handle any preparation needed to run a test - * - * @uts: Test state - * @test: Test to prepare for - * @return 0 if OK, -EAGAIN to skip this test since some required feature is not - * available, other -ve on error (meaning that testing cannot likely - * continue) - */ -int test_pre_run(struct unit_test_state *uts, struct unit_test *test); - -/** - * test_post_run() - Handle cleaning up after a test - * - * @uts: Test state - * @test: Test to clean up after - * @return 0 if OK, -ve on error (meaning that testing cannot likely continue) - */ -int test_post_run(struct unit_test_state *uts, struct unit_test *test); - -/** * ut_run_test() - Run a single test * * This runs the test, handling any preparation and clean-up needed. It prints |