File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function run_test() {
7
7
local erase_flash=$4
8
8
local sketchdir=$( dirname $sketch )
9
9
local sketchname=$( basename $sketchdir )
10
+ local result=0
10
11
11
12
if [[ -f " $sketchdir /.skip.$platform " ]] || [[ -f " $sketchdir /.skip.$target " ]] || [[ -f " $sketchdir /.skip.$platform .$target " ]]; then
12
13
echo " Skipping $sketchname test for $target , platform: $platform "
@@ -61,11 +62,17 @@ function run_test() {
61
62
extra_args=" --embedded-services esp,arduino"
62
63
fi
63
64
65
+ result=0
64
66
echo " pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args "
65
- bash -c " pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args "
67
+ bash -c " set +e; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args ; exit \$ ? " || result= $?
66
68
result=$?
67
69
if [ $result -ne 0 ]; then
68
- return $result
70
+ echo " Retrying test: $sketchname -- Config: $i "
71
+ bash -c " set +e; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args ; exit \$ ?" || result=$?
72
+ result=$?
73
+ if [ $result -ne 0 ]; then
74
+ exit $result
75
+ fi
69
76
fi
70
77
done
71
78
}
You can’t perform that action at this time.
0 commit comments