diff options
author | Tom Rini <trini@konsulko.com> | 2021-03-12 15:57:20 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 15:57:20 -0500 |
commit | c57ec2c2bab00c02a457ca70624c1333c60c2ec0 (patch) | |
tree | 8b8b53585fd9bc655f32eba141f3c2d25d21d882 /arch/sandbox/cpu/spl.c | |
parent | 668866aa24a87244e64be42f296959297ddc5014 (diff) | |
parent | fc3283314539d6c3fb577359f6cb364c19c13726 (diff) |
Merge branch '2021-03-12-test-improvements' into next
- Assorted improvements to the pytest framework
Diffstat (limited to 'arch/sandbox/cpu/spl.c')
-rw-r--r-- | arch/sandbox/cpu/spl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index 6926e244ca..f82b0d3de1 100644 --- a/arch/sandbox/cpu/spl.c +++ b/arch/sandbox/cpu/spl.c @@ -13,7 +13,7 @@ #include <asm/global_data.h> #include <asm/spl.h> #include <asm/state.h> -#include <test/test.h> +#include <test/ut.h> DECLARE_GLOBAL_DATA_PTR; @@ -37,7 +37,7 @@ static int spl_board_load_image(struct spl_image_info *spl_image, char fname[256]; int ret; - ret = os_find_u_boot(fname, sizeof(fname)); + ret = os_find_u_boot(fname, sizeof(fname), false); if (ret) { printf("(%s not found, error %d)\n", fname, ret); return ret; @@ -63,9 +63,12 @@ void spl_board_init(void) preloader_console_init(); if (state->run_unittests) { + struct unit_test *tests = UNIT_TEST_ALL_START(); + const int count = UNIT_TEST_ALL_COUNT(); int ret; - ret = dm_test_main(state->select_unittests); + ret = ut_run_list("spl", NULL, tests, count, + state->select_unittests); /* continue execution into U-Boot */ } } |