Skip to content

Commit 6beecda

Browse files
committed
Count maintenance test failures
1 parent 85aeaa5 commit 6beecda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,15 @@ if [ "$TEST_SUITE" == "workspace" ]; then
123123
FAILURE_COUNT=$((FAILURE_COUNT+1))
124124
fi
125125

126+
set +e
126127
# shellcheck disable=SC2086
127128
go test -v $TEST_LIST "${args[@]}" -labels="type=maintenance" 2>&1
129+
RC=${PIPESTATUS[0]}
130+
set -e
131+
132+
if [ "${RC}" -ne "0" ]; then
133+
FAILURE_COUNT=$((FAILURE_COUNT+1))
134+
fi
128135

129136
cd -
130137
if [ "${REPORT}" != "" ]; then

0 commit comments

Comments
 (0)