Skip to content

Commit 7789f7e

Browse files
committed
De-magic number exit status codes
1 parent 94a7ff9 commit 7789f7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino-ci-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ function build_sketch()
683683
# A sketch was specified
684684
if ! build_this_sketch "$sketchPath" "$boardID" "$IDEversion" "$allowFail"; then
685685
# build_this_sketch returned a non-zero exit status
686-
buildSketchExitStatus=1
686+
buildSketchExitStatus="$ARDUINO_CI_SCRIPT_FAILURE_EXIT_STATUS"
687687
fi
688688
else
689689
# Search for all sketches in the path and put them in an array
@@ -702,7 +702,7 @@ function build_sketch()
702702
if [[ "$sketchFolder" == "$sketchNameWithoutPathWithoutExtension" ]]; then
703703
if ! build_this_sketch "$sketchName" "$boardID" "$IDEversion" "$allowFail"; then
704704
# build_this_sketch returned a non-zero exit status
705-
buildSketchExitStatus=1;
705+
buildSketchExitStatus="$ARDUINO_CI_SCRIPT_FAILURE_EXIT_STATUS"
706706
fi
707707
fi
708708
done

0 commit comments

Comments
 (0)