]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/loader: refine regex to find module
authorLee Chee Yang <chee.yang.lee@intel.com>
Wed, 1 Jul 2020 14:39:08 +0000 (22:39 +0800)
committerSteve Sakoman <steve@sakoman.com>
Tue, 7 Jul 2020 00:33:20 +0000 (14:33 -1000)
commit838646da741cda2059ee2bd64fd1e59980fbf945
tree1c05e3505dba06e4e1e1529241f8b042c3d80222
parente921edd27e71af00f07e3f1e973d2b0c6c777bf4
oeqa/core/loader: refine regex to find module

test case in format <module name>.<class name>.<test case name>
this is clear when test cases is only 3 item deep.

but confused when it is 4 item deep, eg,
oelib.types.TestList.test_list_nosep

in this case, oelib and oelib.types can both be treated as module
since module name contains only lower cases and class name should
contain atleast one upper case.
so, always treat leading item without upper case as module also allow
module name to contain dot.

[YOCTO #13941]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ad81ea90a815389e45ff302a85151724c71f71c3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/core/loader.py