Skip to content

Commit 68708aa

Browse files
committed
[CI] Fix issue on error detection
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 37f211e commit 68708aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CI/build/arduino-cli.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,11 @@ def check_status(status, build_conf, boardKo):
492492
elif status[1] == 1:
493493
# Check if failed due to a region overflowed
494494
logFile = os.path.join(build_conf[3], sketch_name + ".log")
495-
error_pattern = re.compile(":\\d+:\\d+:\\serror:\\s")
495+
# error or fatal error
496+
error_pattern = re.compile(r":\d+:\d+:\s.*error:\s")
496497
ld_pattern = re.compile("arm-none-eabi/bin/ld:")
497498
overflow_pattern = re.compile(
498-
"will not fit in region|region .+ overflowed by [\\d]+ bytes"
499+
r"will not fit in region|region .+ overflowed by [\d]+ bytes"
499500
)
500501
error_found = False
501502
for i, line in enumerate(open(logFile)):

0 commit comments

Comments
 (0)