Openembedded Core Discussions
 help / color / mirror / Atom feed
* [dunfell][PATCH] oeqa/core/loader: fix regex to include numbers
@ 2020-07-13  7:09 Vacek, Patrick
  2020-07-13  7:32 ` ✗ patchtest: failure for oeqa/core/loader: fix regex to include numbers (rev2) Patchwork
  0 siblings, 1 reply; 2+ messages in thread
From: Vacek, Patrick @ 2020-07-13  7:09 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

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>
---
 meta/lib/oeqa/core/loader.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-13  7:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-13  7:09 [dunfell][PATCH] oeqa/core/loader: fix regex to include numbers Vacek, Patrick
2020-07-13  7:32 ` ✗ patchtest: failure for oeqa/core/loader: fix regex to include numbers (rev2) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox