Skip to content

Commit efe2759

Browse files
committed
test
1 parent 696fda8 commit efe2759

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: .github/scripts/tests_run.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ function run_test() {
1919
len=1
2020
fi
2121

22+
if [ $len -eq 1 ]; then
23+
SDKCONFIG_PATH="$HOME/.arduino/tests/$sketchname/build.tmp/sdkconfig"
24+
else
25+
SDKCONFIG_PATH="$HOME/.arduino/tests/$sketchname/build0.tmp/sdkconfig"
26+
fi
27+
28+
echo "Running tests for $sketchname. SDKCONFIG_PATH: $SDKCONFIG_PATH"
29+
2230
if [ -f $sketchdir/ci.json ]; then
2331
# If the target or platform is listed as false, skip the sketch. Otherwise, include it.
2432
is_target=$(jq -r --arg target $target '.targets[$target]' $sketchdir/ci.json)
@@ -30,12 +38,6 @@ function run_test() {
3038
return 0
3139
fi
3240

33-
if [ $len -eq 1 ]; then
34-
SDKCONFIG_PATH="$HOME/.arduino/tests/$sketchname/build.tmp/sdkconfig"
35-
else
36-
SDKCONFIG_PATH="$HOME/.arduino/tests/$sketchname/build0.tmp/sdkconfig"
37-
fi
38-
3941
# Check if the sketch requires any configuration options
4042
requirements=$(jq -r '.requires[]? // empty' $sketchdir/ci.json)
4143
if [[ "$requirements" != "null" ]] || [[ "$requirements" != "" ]]; then

0 commit comments

Comments
 (0)