diff options
| author | Vacek, Patrick <patrick.vacek@here.com> | 2020-07-06 10:34:46 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-08 10:37:12 +0100 |
| commit | 6474ff808b889af889c0cf71a5d8c357f8724a6e (patch) | |
| tree | b76809a9c28ae1e95efedcf61b5a16933ddf46be | |
| parent | d743f379415b8beb506bcd70870b2695ae9db95f (diff) | |
| download | poky-6474ff808b889af889c0cf71a5d8c357f8724a6e.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.
(From OE-Core rev: f241fa493536ac953c1dac303917c6e75b459e28)
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.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): | |||
| 46 | for module in modules: | 46 | for module in modules: |
| 47 | # Assumption: package and module names do not contain upper case | 47 | # Assumption: package and module names do not contain upper case |
| 48 | # characters, whereas class names do | 48 | # characters, whereas class names do |
| 49 | m = re.match(r'^([1-2a-z_.]+)(?:\.(\w[^.]*)(?:\.([^.]+))?)?$', module, flags=re.ASCII) | 49 | m = re.match(r'^([0-9a-z_.]+)(?:\.(\w[^.]*)(?:\.([^.]+))?)?$', module, flags=re.ASCII) |
| 50 | if not m: | 50 | if not m: |
| 51 | continue | 51 | continue |
| 52 | 52 | ||
