File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ function run_test() {
26
26
sdkconfig_path=" $HOME /.arduino/tests/$sketchname /build0.tmp/sdkconfig"
27
27
fi
28
28
29
+ if [ ! -f $sdkconfig_path ]; then
30
+ printf " \033[93mSketch $sketchname not built\nMight be due to missing target requirements or build failure\033[0m\n"
31
+ printf " \n\n\n"
32
+ return 0
33
+ fi
34
+
29
35
if [ -f $sketchdir /ci.json ]; then
30
36
# If the target or platform is listed as false, skip the sketch. Otherwise, include it.
31
37
is_target=$( jq -r --arg target $target ' .targets[$target]' $sketchdir /ci.json)
@@ -37,11 +43,11 @@ function run_test() {
37
43
return 0
38
44
fi
39
45
40
- local has_requirements =$( ${CHECK_REQUIREMENTS} $sketchdir " $sdkconfig_path " )
41
- if [ " $has_requirements " == " 0 " ]; then
42
- printf " \033[93mTarget $target does not meet the requirements for $sketchname . Skipping. \033[0m\n"
46
+ local right_target =$( grep -E " ^CONFIG_IDF_TARGET= \" $target \" $ " " $sdkconfig_path " )
47
+ if [ -z " $right_target " ]; then
48
+ printf " \033[91mError: Sketch $sketchname compiled for different target\n \033[0m\n"
43
49
printf " \n\n\n"
44
- return 0
50
+ return 1
45
51
fi
46
52
fi
47
53
You can’t perform that action at this time.
0 commit comments