From 63bea82d93a48c3dbc17477fb6b54a71ad4bc363 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 9 May 2019 14:33:37 +0100 Subject: 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. (From OE-Core rev: f1009d6d44097a3f140e2f8679e9184031b10b44) Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- meta/lib/oeqa/core/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/lib') diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py index 2deba6e932..65be679b43 100644 --- a/meta/lib/oeqa/core/runner.py +++ b/meta/lib/oeqa/core/runner.py @@ -106,13 +106,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.*)\)$", scase_str) + m = re.search(r"^setUpModule \((?P.*)\).*$", scase_str) if m: if case.__class__.__module__ == m.group('module_name'): found = True break - m = re.search(r"^setUpClass \((?P.*)\)$", scase_str) + m = re.search(r"^setUpClass \((?P.*)\).*$", scase_str) if m: class_name = "%s.%s" % (case.__class__.__module__, case.__class__.__name__) -- cgit v1.2.3-54-g00ecf