Skip to content

Commit 53ba831

Browse files
committed
Skip files which aren't main sketch files
1 parent fa3effa commit 53ba831

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/common.sh

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ function build_sketches()
1010
export ARDUINO_IDE_PATH=$arduino
1111
for sketch in $sketches; do
1212
local sketchdir=$(dirname $sketch)
13+
local sketchdirname=$(basename $sketchdir)
14+
local sketchname=$(basename $sketch)
15+
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
16+
echo "Skipping $sketch, beacause it is not the main sketch file";
17+
continue
18+
fi;
1319
if [[ -f "$sketchdir/.test.skip" ]]; then
1420
echo -e "\n\n ------------ Skipping $sketch ------------ \n\n";
1521
continue

0 commit comments

Comments
 (0)