summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-26 15:03:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-26 16:55:11 +0100
commitf2042bf3638ed4edfb167e7f7d4be6da60997ead (patch)
tree297699032eeaf71e16afb1a8f94da52924a7a772 /meta/lib
parent78033af85698b4e112ae78e3140b241b1b3c06a3 (diff)
downloadopenembedded-core-contrib-f2042bf3638ed4edfb167e7f7d4be6da60997ead.tar.gz
openembedded-core-contrib-f2042bf3638ed4edfb167e7f7d4be6da60997ead.tar.bz2
openembedded-core-contrib-f2042bf3638ed4edfb167e7f7d4be6da60997ead.zip
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@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/core/loader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py
index 98fc0f696a..6070bf5310 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()