From e12457dd6e8b59782d1edc7953e9d1d35ba6aa01 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 3 Jun 2025 05:29:55 -0400 Subject: [PATCH] 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 --- scripts/pylib/twister/twisterlib/reports.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/pylib/twister/twisterlib/reports.py b/scripts/pylib/twister/twisterlib/reports.py index 50f422180d2..d5677445acb 100644 --- a/scripts/pylib/twister/twisterlib/reports.py +++ b/scripts/pylib/twister/twisterlib/reports.py @@ -845,4 +845,9 @@ class Reporting: return line[line.index('error: ') :].strip() elif ": in function " in line: 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