test: Pass the test state to cmd_ut_category()
Update this function to access a unit-test state, so that the caller can collect results from running multiple suites. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -94,7 +94,8 @@ void bootstd_reset_usb(void)
|
||||
usb_started = false;
|
||||
}
|
||||
|
||||
int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
int do_ut_bootstd(struct unit_test_state *uts, struct cmd_tbl *cmdtp, int flag,
|
||||
int argc, char *const argv[])
|
||||
{
|
||||
struct unit_test *tests = UNIT_TEST_SUITE_START(bootstd);
|
||||
const int n_ents = UNIT_TEST_SUITE_COUNT(bootstd);
|
||||
@@ -106,6 +107,6 @@ int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
||||
return cmd_ut_category("bootstd", "bootstd_", tests, n_ents,
|
||||
argc, argv);
|
||||
return cmd_ut_category(uts, "bootstd", "bootstd_",
|
||||
tests, n_ents, argc, argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user