core/loader.py: fix regex to include all available test cases
PATCH v2 1/1 core/loader.py: fix regex to include all available test cases
From: Leonardo Sandoval <[email protected]>
Some test cases (eSDK.oeSDK*, runtime_test/*) does not match with current regex, fix it accept all.
[YOCTO #12385]
Signed-off-by Leonardo Sandoval <[email protected]>
--- meta/lib/oeqa/core/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/core/loader.py +1 -1
@@ -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()
Signature · 1 line
2.12.3