diff options
author | Vacek, Patrick <patrick.vacek@here.com> | 2020-07-06 10:34:46 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2020-07-13 17:14:28 -1000 |
commit | eab35415bb2cd68872707693afcf7705675fa87e (patch) | |
tree | de3d2a107ad72289d63f9bf36528deec4d7c2b66 /meta/lib/oeqa | |
parent | e62371448a7d5604fa6029c7a8be278e83dad35c (diff) | |
download | openembedded-core-contrib-eab35415bb2cd68872707693afcf7705675fa87e.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>
(cherry picked from commit f241fa493536ac953c1dac303917c6e75b459e28)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/core/loader.py | 2 |
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 |