File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -784,14 +784,9 @@ function build_this_sketch()
784
784
fi
785
785
786
786
# Check for missing bootloader
787
- if [[ " $ARDUINO_CI_SCRIPT_TEST_BOARD " == " true" ]]; then
788
- local bootloaderMissingRegex=" Bootloader file specified but missing: "
789
- if [[ " $outputFileLine " =~ $bootloaderMissingRegex ]] > /dev/null; then
790
- local boardIssue=" missing bootloader"
791
- if [[ " $allowFail " != " true" ]]; then
792
- buildThisSketchExitCode=1
793
- fi
794
- fi
787
+ local bootloaderMissingRegex=" Bootloader file specified but missing: "
788
+ if [[ " $outputFileLine " =~ $bootloaderMissingRegex ]] > /dev/null; then
789
+ local boardIssue=" missing bootloader"
795
790
fi
796
791
done < " $ARDUINO_CI_SCRIPT_VERIFICATION_OUTPUT_FILENAME "
797
792
@@ -800,6 +795,11 @@ function build_this_sketch()
800
795
# Remove the stupid comma from the memory values if present
801
796
local -r programStorage=${programStorageWithComma// ,}
802
797
local -r dynamicMemory=${dynamicMemoryWithComma// ,}
798
+
799
+ if [[ " $boardIssue " != " " && " $ARDUINO_CI_SCRIPT_TEST_BOARD " == " true" && " $allowFail " != " true" ]]; then
800
+ # There was a board issue and board testing is enabled so fail the build
801
+ local -r buildThisSketchExitCode=" $ARDUINO_CI_SCRIPT_FAILURE_EXIT_STATUS "
802
+ fi
803
803
fi
804
804
805
805
# Add the build data to the report file
You can’t perform that action at this time.
0 commit comments