Skip to content

Commit c9a5d27

Browse files
authored
ci: Enhance boards test validation (#11888)
* ci: Enhance boards test validation * ci: Improve partition scheme check logic and logs * ci: Add rule for debug level menu * ci: revert nano_nora changes * fix(board): Add missing Verbose debug level * fix(boards): Add missing debug level menus * fix(board): Add missing upload flags and extra_flags * ci: Add rule for duplicate lines and extend vid/pid rule * fix(boards): Update boards to match new rules * ci(boards): Move variable to global and clear logs
1 parent 81a6760 commit c9a5d27

File tree

5 files changed

+735
-268
lines changed

5 files changed

+735
-268
lines changed

.github/scripts/find_new_boards.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,25 @@ echo "$modified_lines"
2727
boards_array=()
2828
previous_board=""
2929

30+
# Define excluded entries that are not actual boards
31+
excluded_entries=("" "+" "-" "esp32_family" "menu")
32+
3033
# Extract board names from the modified lines, and add them to the boards_array
3134
while read -r line; do
3235
board_name=$(echo "$line" | cut -d '.' -f1 | cut -d '#' -f1)
3336
# remove + or - from the board name at the beginning
3437
board_name=${board_name#[-+]}
35-
if [ "$board_name" != "" ] && [ "$board_name" != "+" ] && [ "$board_name" != "-" ] && [ "$board_name" != "esp32_family" ]; then
38+
39+
# Check if board_name is in excluded entries
40+
is_excluded=false
41+
for excluded in "${excluded_entries[@]}"; do
42+
if [ "$board_name" = "$excluded" ]; then
43+
is_excluded=true
44+
break
45+
fi
46+
done
47+
48+
if [ "$is_excluded" = false ]; then
3649
if [ "$board_name" != "$previous_board" ]; then
3750
boards_array+=("espressif:esp32:$board_name")
3851
previous_board="$board_name"

0 commit comments

Comments
 (0)