summaryrefslogtreecommitdiff
path: root/test/cmd/pci_mps.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-20 14:25:32 -0700
committerTom Rini <trini@konsulko.com>2025-01-24 14:34:40 -0600
commit4ba3ab4901c564725c37e927e2ba29595712cd9d (patch)
treeb36263667b0fccf7b57bc5911f39e0c1181e5a5c /test/cmd/pci_mps.c
parentc16b388ea8bcee9acd17a555e66e61c72b973128 (diff)
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>
Diffstat (limited to 'test/cmd/pci_mps.c')
-rw-r--r--test/cmd/pci_mps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cmd/pci_mps.c b/test/cmd/pci_mps.c
index 0c57d15d636..2595ea103ff 100644
--- a/test/cmd/pci_mps.c
+++ b/test/cmd/pci_mps.c
@@ -11,7 +11,7 @@
#include <test/suites.h>
#include <test/ut.h>
-#define PCI_MPS_TEST(_name, _flags) UNIT_TEST(_name, _flags, pci_mps_test)
+#define PCI_MPS_TEST(_name, _flags) UNIT_TEST(_name, _flags, pci_mps)
/* Test "pci_mps" command in safe "s" mode */
static int test_pci_mps_safe(struct unit_test_state *uts)
@@ -32,8 +32,8 @@ PCI_MPS_TEST(test_pci_mps_safe, UTF_CONSOLE);
int do_ut_pci_mps(struct cmd_tbl *cmdtp, int flag, int argc,
char * const argv[])
{
- struct unit_test *tests = UNIT_TEST_SUITE_START(pci_mps_test);
- const int n = UNIT_TEST_SUITE_COUNT(pci_mps_test);
+ struct unit_test *tests = UNIT_TEST_SUITE_START(pci_mps);
+ const int n = UNIT_TEST_SUITE_COUNT(pci_mps);
return cmd_ut_category("pci_mps", "pci_mps_test_", tests, n,
argc, argv);