Skip to content

Commit 38e6135

Browse files
committed
Fix run-full-tests.sh non-zero failure exit
1 parent 0442cb5 commit 38e6135

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Utilities/run-full-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ report_failure() {
4646
}
4747

4848
_count=0
49+
failures=0
4950
try() {
5051
label="$1"
5152
shift
@@ -62,6 +63,7 @@ try() {
6263
echo " ${red_on}${bold_on}Failed in $(($end - $start))s.${bold_off}${red_off}" \
6364
"${red_on}See $output for full console output.${red_off}"
6465
tail -10 "$output" | sed 's/^/ /'
66+
failures=$(($failures + 1))
6567
fi
6668
}
6769

@@ -190,3 +192,8 @@ else
190192
-Xswiftc -DSWIFT_ATOMICS_LONG_TESTS \
191193
--build-path "$build_dir/spm.release.test.long+tsan"
192194
fi
195+
196+
if [ "$failures" -ne 0 ]; then
197+
echo "${red_on}${bold_on}Completed with $failures failing test configuration(s).${bold_off}${red_off}"
198+
exit 1
199+
fi

0 commit comments

Comments
 (0)