test: Drop the _test suffix on linker lists
Most test suites have a _test suffix. This is not necessary as there is
also a ut_ prefix.
Drop the suffix so that (with future work) the suite name can be used as
the linker-list name.
Remove the suffix from the pytest regex as well, moving it to the top of
the file, as it is a constant.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/test/common/bloblist.c b/test/common/bloblist.c
index 4bca621..f5d9877 100644
--- a/test/common/bloblist.c
+++ b/test/common/bloblist.c
@@ -12,7 +12,7 @@
/* Declare a new bloblist test */
#define BLOBLIST_TEST(_name, _flags) \
- UNIT_TEST(_name, _flags, bloblist_test)
+ UNIT_TEST(_name, _flags, bloblist)
enum {
TEST_TAG = BLOBLISTT_U_BOOT_SPL_HANDOFF,
@@ -606,8 +606,8 @@
int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
- struct unit_test *tests = UNIT_TEST_SUITE_START(bloblist_test);
- const int n_ents = UNIT_TEST_SUITE_COUNT(bloblist_test);
+ struct unit_test *tests = UNIT_TEST_SUITE_START(bloblist);
+ const int n_ents = UNIT_TEST_SUITE_COUNT(bloblist);
return cmd_ut_category("bloblist", "bloblist_test_",
tests, n_ents, argc, argv);
diff --git a/test/common/cmd_ut_common.c b/test/common/cmd_ut_common.c
index 2f03a58..0724c93 100644
--- a/test/common/cmd_ut_common.c
+++ b/test/common/cmd_ut_common.c
@@ -13,8 +13,8 @@
int do_ut_common(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
- struct unit_test *tests = UNIT_TEST_SUITE_START(common_test);
- const int n_ents = UNIT_TEST_SUITE_COUNT(common_test);
+ struct unit_test *tests = UNIT_TEST_SUITE_START(common);
+ const int n_ents = UNIT_TEST_SUITE_COUNT(common);
return cmd_ut_category("common", "common_test_", tests, n_ents, argc,
argv);