summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorPhilippe Reynes <philippe.reynes@softathome.com>2019-12-17 19:07:04 +0100
committerTom Rini <trini@konsulko.com>2020-01-07 11:13:25 -0500
commit4ad4edfe77fce829c54d9a804e037923e7474451 (patch)
tree6ebd4856dd4310f81091358f39cb9a0584fae616 /test/lib
parent5677fe9d6b82a931b058de76b1668fe5b63d4616 (diff)
downloadu-boot-4ad4edfe77fce829c54d9a804e037923e7474451.tar.gz
u-boot-4ad4edfe77fce829c54d9a804e037923e7474451.tar.bz2
u-boot-4ad4edfe77fce829c54d9a804e037923e7474451.zip
cmd_ut: add a parameter prefix to the function cmd_ut_category
There is black magic in the file conftest.py that list all the test unit. Then, all those test unit are called in pytest. This call is done with the end of the name (for example checksum if the full name is bloblist_test_checksum). The result is that only test for dm are really executed. by pytest, all others tests are listed but never executed. This behaviour happens because the dm test unit only check the end of the name and others tests checks the full name. To fix this issue, I've added a prefix to the function cmd_ut_category, and this prefix is removed when looking for the unit test. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/cmd_ut_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/cmd_ut_lib.c b/test/lib/cmd_ut_lib.c
index eb90e53914..c73e8d7b05 100644
--- a/test/lib/cmd_ut_lib.c
+++ b/test/lib/cmd_ut_lib.c
@@ -16,5 +16,5 @@ int do_ut_lib(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
struct unit_test *tests = ll_entry_start(struct unit_test, lib_test);
const int n_ents = ll_entry_count(struct unit_test, lib_test);
- return cmd_ut_category("lib", tests, n_ents, argc, argv);
+ return cmd_ut_category("lib", "lib_test_", tests, n_ents, argc, argv);
}