Skip to content

Commit 073d6a4

Browse files
committed
Fix
1 parent f984ff3 commit 073d6a4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/scripts/tests_run.sh

Lines changed: 3 additions & 1 deletion
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 error=0
1011

1112
# If the target or platform is listed as false, skip the sketch. Otherwise, include it.
1213
if [ -f $sketchdir/ci.json ]; then
@@ -86,9 +87,10 @@ function run_test() {
8687
bash -c "pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args"
8788
result=$?
8889
if [ $result -ne 0 ]; then
89-
return $result
90+
error=$result
9091
fi
9192
done
93+
return $error
9294
}
9395

9496
SCRIPTS_DIR="./.github/scripts"

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,23 +137,23 @@ jobs:
137137
continue-on-error: true
138138
with:
139139
merge-multiple: true
140-
pattern: test-results-hw-*
140+
pattern: tests-results-hw-*
141141
path: ./results/hw
142142

143143
- name: Download and Extract Wokwi Artifacts
144144
uses: actions/download-artifact@v4
145145
continue-on-error: true
146146
with:
147147
merge-multiple: true
148-
pattern: test-results-wokwi-*
148+
pattern: tests-results-wokwi-*
149149
path: ./results/wokwi
150150

151151
- name: Download and Extract QEMU Artifacts
152152
uses: actions/download-artifact@v4
153153
continue-on-error: true
154154
with:
155155
merge-multiple: true
156-
pattern: test-results-qemu-*
156+
pattern: tests-results-qemu-*
157157
path: ./results/qemu
158158

159159
- name: Publish Unit Test Results

0 commit comments

Comments
 (0)