From: Vacek, Patrick Date: Mon, 6 Jul 2020 10:34:46 +0000 (+0000) Subject: oeqa/core/loader: fix regex to include numbers X-Git-Tag: 2020-04.2-dunfell~29 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=eab35415bb2cd68872707693afcf7705675fa87e;p=openembedded-core.git oeqa/core/loader: fix regex to include numbers The previous version only included the numbers 1 and 2 in the allowed characters for the module name. In the past, this was (\w+) so all numbers were allowed. Now it explicitly includes all numbers again. Signed-off-by: Patrick Vacek Signed-off-by: Richard Purdie (cherry picked from commit f241fa493536ac953c1dac303917c6e75b459e28) Signed-off-by: Steve Sakoman --- diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py index 73c5788508..11978213b8 100644 --- a/meta/lib/oeqa/core/loader.py +++ b/meta/lib/oeqa/core/loader.py @@ -46,7 +46,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'^([1-2a-z_.]+)(?:\.(\w[^.]*)(?:\.([^.]+))?)?$', module, flags=re.ASCII) + m = re.match(r'^([0-9a-z_.]+)(?:\.(\w[^.]*)(?:\.([^.]+))?)?$', module, flags=re.ASCII) if not m: continue