summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVacek, Patrick <patrick.vacek@here.com>2020-07-06 10:34:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-08 10:37:08 +0100
commitf241fa493536ac953c1dac303917c6e75b459e28 (patch)
tree183087abb1ec23a4525e886e2f36dd2c4a59cf9d
parenta58672fdf7e3b26b57ec31b9ba4f1eaaa7f5a53c (diff)
downloadopenembedded-core-contrib-f241fa493536ac953c1dac303917c6e75b459e28.tar.gz
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 <patrickvacek@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/core/loader.py2
1 files changed, 1 insertions, 1 deletions
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