diff options
author | Philippe Reynes <philippe.reynes@softathome.com> | 2019-12-17 19:07:04 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-07 11:13:25 -0500 |
commit | 4ad4edfe77fce829c54d9a804e037923e7474451 (patch) | |
tree | 6ebd4856dd4310f81091358f39cb9a0584fae616 /test/optee/cmd_ut_optee.c | |
parent | 5677fe9d6b82a931b058de76b1668fe5b63d4616 (diff) | |
download | u-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/optee/cmd_ut_optee.c')
-rw-r--r-- | test/optee/cmd_ut_optee.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/optee/cmd_ut_optee.c b/test/optee/cmd_ut_optee.c index 670682f3d4..092710326a 100644 --- a/test/optee/cmd_ut_optee.c +++ b/test/optee/cmd_ut_optee.c @@ -129,20 +129,20 @@ int do_ut_optee(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ut_assertok(optee_copy_fdt_nodes(fdt_no_optee, fdt)); expect_success = false; - ret = cmd_ut_category("optee", tests, n_ents, argc, argv); + ret = cmd_ut_category("optee", "", tests, n_ents, argc, argv); /* (2) Try to copy optee nodes from prefilled dt */ ut_assertok(optee_copy_fdt_nodes(fdt_optee, fdt)); expect_success = true; - ret = cmd_ut_category("optee", tests, n_ents, argc, argv); + ret = cmd_ut_category("optee", "", tests, n_ents, argc, argv); /* (3) Try to copy OP-TEE nodes into a already filled DT */ ut_assertok(fdt_open_into(fdt_optee, fdt, FDT_COPY_SIZE)); ut_assertok(optee_copy_fdt_nodes(fdt_optee, fdt)); expect_success = true; - ret = cmd_ut_category("optee", tests, n_ents, argc, argv); + ret = cmd_ut_category("optee", "", tests, n_ents, argc, argv); free(fdt); return ret; |