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>
diff --git a/test/boot/bootstd_common.c b/test/boot/bootstd_common.c
index 6bd9bb6..724e3d9 100644
--- a/test/boot/bootstd_common.c
+++ b/test/boot/bootstd_common.c
@@ -94,7 +94,8 @@
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 @@
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);
}