Skip to content

Commit 937815e

Browse files
committed
[CI] Fix build failed management
Since arduino-cli v0.11.0 '-o' options has been removed. The script does not handle properly this case which raised a command usage error. Error: unknown shorthand flag: 'o' in -o Usage: arduino-cli compile [flags] So this fix allows to properly handle it. Signed-off-by: Frederic Pillon <[email protected]>
1 parent b12a554 commit 937815e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: CI/build/arduino-cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def check_status(status, build_conf, boardKo):
491491
# Check if failed due to a region overflowed
492492
logFile = os.path.join(build_conf[3], sketch_name + ".log")
493493
# error or fatal error
494-
error_pattern = re.compile(r":\d+:\d+:\s.*error:\s")
494+
error_pattern = re.compile(r":\d+:\d+:\s.*error:\s|^Error:")
495495
ld_pattern = re.compile("arm-none-eabi/bin/ld:")
496496
overflow_pattern = re.compile(
497497
r"(will not fit in |section .+ is not within )?region( .+ overflowed by [\d]+ bytes)?"

0 commit comments

Comments
 (0)