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-16 22:28:40 +0100
commit2b4ced8b5b7e81b3f1ca5e8f7d29b0faec150c05 (patch)
treefe105e5ad18470d51090097706a5eb1b541df0ee
parent0a431f61d8efc4be1add349415abd7a8c4bb4395 (diff)
downloadpoky-2b4ced8b5b7e81b3f1ca5e8f7d29b0faec150c05.tar.gz
poky-2b4ced8b5b7e81b3f1ca5e8f7d29b0faec150c05.tar.bz2
poky-2b4ced8b5b7e81b3f1ca5e8f7d29b0faec150c05.zip
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. (From OE-Core rev: eab35415bb2cd68872707693afcf7705675fa87e) Signed-off-by: Patrick Vacek <patrickvacek@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f241fa493536ac953c1dac303917c6e75b459e28) Signed-off-by: Steve Sakoman <steve@sakoman.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