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: lucaceresoli/bug-15201-perf-libtraceevent-missing~10603 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f241fa493536ac953c1dac303917c6e75b459e28;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 --- diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py index 73c57885082..11978213b86 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