twister: reports: try to show more build failures in generated summary

Some Build failures are actually cmake issues, so in that case, if
nothing is found as build failure, try to parse for cmake issues.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2025-06-03 05:29:55 -04:00 committed by Daniel DeGrasse
commit e12457dd6e

View file

@ -845,4 +845,9 @@ class Reporting:
return line[line.index('error: ') :].strip() return line[line.index('error: ') :].strip()
elif ": in function " in line: elif ": in function " in line:
last_warning = line[line.index('in function') :].strip() last_warning = line[line.index('in function') :].strip()
elif "CMake Error at" in line:
for next_line in lines[i + 1 :]:
if next_line.strip():
return line + ' ' + next_line
return line
return None return None