Skip to content

Commit d746fc1

Browse files
committed
test
1 parent c6e7478 commit d746fc1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/scripts/tests_run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function run_test() {
77
local erase_flash=$4
88
local sketchdir=$(dirname $sketch)
99
local sketchname=$(basename $sketchdir)
10+
local result=0
1011
local error=0
1112

1213
# If the target or platform is listed as false, skip the sketch. Otherwise, include it.
@@ -83,11 +84,10 @@ function run_test() {
8384
extra_args="--embedded-services esp,arduino"
8485
fi
8586

87+
result=0
8688
echo "pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args"
87-
set +e # Disable exit on error
88-
bash -c "pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args"
89-
result=$?
90-
set -e # Enable exit on error
89+
bash -c "pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args" || result=$?
90+
echo "Test $sketchname return code: $result"
9191
if [ $result -ne 0 ]; then
9292
error=$result
9393
fi

0 commit comments

Comments
 (0)