Skip to content

Commit c02d8d9

Browse files
committed
fix(tests): Skip if trying to run sketch not built
1 parent 339d659 commit c02d8d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/scripts/tests_run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ function run_test() {
2626
sdkconfig_path="$HOME/.arduino/tests/$sketchname/build0.tmp/sdkconfig"
2727
fi
2828

29+
if [ ! -f $sdkconfig_path ]; then
30+
printf "\033[93mSketch not built: $sketchname\nMight be due to missing target requirements or build failure.\033[0m\n"
31+
printf "\n\n\n"
32+
return 0
33+
fi
34+
2935
if [ -f $sketchdir/ci.json ]; then
3036
# If the target or platform is listed as false, skip the sketch. Otherwise, include it.
3137
is_target=$(jq -r --arg target $target '.targets[$target]' $sketchdir/ci.json)

0 commit comments

Comments
 (0)