]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/core/loader: fix regex to include numbers
authorVacek, Patrick <patrick.vacek@here.com>
Mon, 6 Jul 2020 10:34:46 +0000 (10:34 +0000)
committerSteve Sakoman <steve@sakoman.com>
Tue, 14 Jul 2020 03:14:28 +0000 (17:14 -1000)
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>
meta/lib/oeqa/core/loader.py

index 73c57885082d33e13fd1ae60e920cb57d69bda68..11978213b86f067b1b1220d53ed39a27d9f90f71 100644 (file)
@@ -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