summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-09 14:33:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-09 16:32:16 +0100
commit425fbba9348420df72de5c6292f50acaf2023d0b (patch)
tree6376873220f57f9c74ae8601d9d678d35b37e999 /meta
parent244f2e5fb545dd40d020811799a6022e14468eeb (diff)
downloadopenembedded-core-contrib-425fbba9348420df72de5c6292f50acaf2023d0b.tar.gz
openembedded-core-contrib-425fbba9348420df72de5c6292f50acaf2023d0b.tar.bz2
openembedded-core-contrib-425fbba9348420df72de5c6292f50acaf2023d0b.zip
oeqa/runner: Fix subunit setupClass/setupModule failure handling
The string format for subunit setupClass/setupModule failures is slightly different, tweak the regex to correctly handle both cases. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/core/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py
index ca61de8cc0..930620ea19 100644
--- a/meta/lib/oeqa/core/runner.py
+++ b/meta/lib/oeqa/core/runner.py
@@ -109,13 +109,13 @@ class OETestResult(_TestResult):
# When fails at module or class level the class name is passed as string
# so figure out to see if match
- m = re.search(r"^setUpModule \((?P<module_name>.*)\)$", scase_str)
+ m = re.search(r"^setUpModule \((?P<module_name>.*)\).*$", scase_str)
if m:
if case.__class__.__module__ == m.group('module_name'):
found = True
break
- m = re.search(r"^setUpClass \((?P<class_name>.*)\)$", scase_str)
+ m = re.search(r"^setUpClass \((?P<class_name>.*)\).*$", scase_str)
if m:
class_name = "%s.%s" % (case.__class__.__module__,
case.__class__.__name__)