From 53ba831c9057e15d7d41dda19ddad8cc1f24f264 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 3 Mar 2016 17:42:27 +0300 Subject: [PATCH] Skip files which aren't main sketch files --- tests/common.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/common.sh b/tests/common.sh index c770d6e3f..9a7569d4f 100755 --- a/tests/common.sh +++ b/tests/common.sh @@ -10,6 +10,12 @@ function build_sketches() export ARDUINO_IDE_PATH=$arduino for sketch in $sketches; do local sketchdir=$(dirname $sketch) + local sketchdirname=$(basename $sketchdir) + local sketchname=$(basename $sketch) + if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then + echo "Skipping $sketch, beacause it is not the main sketch file"; + continue + fi; if [[ -f "$sketchdir/.test.skip" ]]; then echo -e "\n\n ------------ Skipping $sketch ------------ \n\n"; continue