]> code.ossystems Code Review - openembedded-core.git/commitdiff
core/loader.py: fix regex to include all available test cases
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Thu, 14 Dec 2017 15:07:22 +0000 (07:07 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Jan 2018 12:56:03 +0000 (12:56 +0000)
Some test cases (eSDK.oeSDK*, runtime_test/*) does not match
with current regex, fix it accept all.

[YOCTO #12385]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/loader.py

index 975a081ba4d0167d9181c3773d612b854bead08f..a4744dee03352c0112e2aa968f93289882893858 100644 (file)
@@ -43,7 +43,7 @@ def _built_modules_dict(modules):
     for module in modules:
         # Assumption: package and module names do not contain upper case
         # characters, whereas class names do
-        m = re.match(r'^([^A-Z]+)(?:\.([A-Z][^.]*)(?:\.([^.]+))?)?$', module)
+        m = re.match(r'^(\w+)(?:\.(\w[^.]*)(?:\.([^.]+))?)?$', module, flags=re.ASCII)
 
         module_name, class_name, test_name = m.groups()