sanitycheck: parse testcase names correctly

We were parsing random FAIL messages from the output of test runs ad
testcases and capturing them in the xml output. Now we only parse the
name if it starts with test_.

Fixes #21162

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-12-04 16:48:49 -05:00
commit a4dd49b380

View file

@ -126,7 +126,7 @@ class Test(Harness):
def handle(self, line): def handle(self, line):
match = result_re.match(line) match = result_re.match(line)
if match: if match and match.group(2):
name = "{}.{}".format(self.id, match.group(3)) name = "{}.{}".format(self.id, match.group(3))
self.tests[name] = match.group(1) self.tests[name] = match.group(1)