Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit f62bbca

Browse files
committed
ci: Fail if final integration test run fails
Fixes: #358 Signed-off-by: John Andersen <[email protected]>
1 parent 76865fe commit f62bbca

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.ci/run.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,18 @@ function run_plugin() {
102102
"${PYTHON}" -m coverage run setup.py test 2>&1 | tee "${check_skips}"
103103
"${PYTHON}" -m coverage report -m
104104

105-
# Fail if any tests were skipped
106-
grep -v -q -E '(skipped=.*)' "${check_skips}"
105+
# Fail if any tests were skipped or errored
106+
skipped=$(grep -E '(skipped=.*)' "${check_skips}" | wc -l)
107+
if [ "$skipped" -ne 0 ]; then
108+
echo "Tests were skipped" >&2
109+
exit 1
110+
fi
111+
112+
errors=$(grep -E '(errors=.*)' "${check_skips}" | wc -l)
113+
if [ "$errors" -ne 0 ]; then
114+
echo "Tests errored" >&2
115+
exit 1
116+
fi
107117
fi
108118

109119
if [ "x${GITHUB_ACTIONS}" == "xtrue" ] && [ "x${GITHUB_REF}" == "xrefs/heads/master" ]; then

0 commit comments

Comments
 (0)