summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-06-19 16:16:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-20 13:14:21 +0100
commit85075b80d610d5ced47d909b8efe1ee531db0c71 (patch)
treeec7a82a96012907bbee97cfddfbab32f22caca51 /meta/lib/oeqa/utils
parent9562ec9c361d6f036317b614e196b1fefe8d867b (diff)
downloadpoky-85075b80d610d5ced47d909b8efe1ee531db0c71.tar.gz
oeqa/logparser: ignore test failure commentary
The output format for Python and GLib both can be of this form: FAIL: foobar (Segmentation fault) In this case the test is called foobar not foobar_segmentation_fault. (From OE-Core rev: 0219e9bd0273661b4b70df97e5762f77b3ac3e8c) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r--meta/lib/oeqa/utils/logparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py
index cc6d18d94a..b31214b1c7 100644
--- a/meta/lib/oeqa/utils/logparser.py
+++ b/meta/lib/oeqa/utils/logparser.py
@@ -16,7 +16,7 @@ class PtestParser(object):
16 def parse(self, logfile): 16 def parse(self, logfile):
17 test_regex = {} 17 test_regex = {}
18 test_regex['PASSED'] = re.compile(r"^PASS:(.+)") 18 test_regex['PASSED'] = re.compile(r"^PASS:(.+)")
19 test_regex['FAILED'] = re.compile(r"^FAIL:(.+)") 19 test_regex['FAILED'] = re.compile(r"^FAIL:([^(]+)")
20 test_regex['SKIPPED'] = re.compile(r"^SKIP:(.+)") 20 test_regex['SKIPPED'] = re.compile(r"^SKIP:(.+)")
21 21
22 section_regex = {} 22 section_regex = {}
@@ -69,7 +69,7 @@ class PtestParser(object):
69 if result: 69 if result:
70 if current_section['name'] not in self.results: 70 if current_section['name'] not in self.results:
71 self.results[current_section['name']] = {} 71 self.results[current_section['name']] = {}
72 self.results[current_section['name']][result.group(1)] = t 72 self.results[current_section['name']][result.group(1).strip()] = t
73 73
74 return self.results, self.sections 74 return self.results, self.sections
75 75