[oe-commits] [openembedded-core] 01/02: oeqa/loader: Ensure invalid test names don't trigger a traceback

git at git.openembedded.org git at git.openembedded.org
Thu Jul 26 16:17:36 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit f2042bf3638ed4edfb167e7f7d4be6da60997ead
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Jul 26 15:03:40 2018 +0000

    oeqa/loader: Ensure invalid test names don't trigger a traceback
    
    oe-selftest -r <invalid test name>
    
    currently triggers a traceback. Ensure this doesn't happen and the user gets a
    sensible error message.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/core/loader.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py
index 98fc0f6..6070bf5 100644
--- a/meta/lib/oeqa/core/loader.py
+++ b/meta/lib/oeqa/core/loader.py
@@ -44,6 +44,8 @@ def _built_modules_dict(modules):
         # Assumption: package and module names do not contain upper case
         # characters, whereas class names do
         m = re.match(r'^(\w+)(?:\.(\w[^.]*)(?:\.([^.]+))?)?$', module, flags=re.ASCII)
+        if not m:
+            continue
 
         module_name, class_name, test_name = m.groups()
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list