Skip to content

Commit

Permalink
tests: Fix a bug in the calculation of the # of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
utam0k authored and roboquat committed Aug 29, 2022
1 parent 75cf6ff commit e50616a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .werft/workspace-run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ for TEST_PATH in "${WK_TEST_LIST[@]}"
do
TEST_NAME=$(basename "${TEST_PATH}")
echo "running integration for ${TEST_NAME}" | werft log slice "test-${TEST_NAME}"
RUN_COUNT=$((RUN_COUNT+1))

cd "${TEST_PATH}"
set +e
go test -v ./... "${args[@]}" 2>&1 | tee "${TEST_NAME}".log | werft log slice "test-${TEST_NAME}"
RC=${PIPESTATUS[0]}
set -e

RUN_COUNT=$((RUN_COUNT+1))
if [ "${RC}" -ne "0" ]; then
FAILURE_COUNT=$((FAILURE_COUNT+1))
FAILURE_TESTS["${TEST_NAME}"]=$(grep "\-\-\- FAIL: " "${TEST_PATH}"/"${TEST_NAME}".log)
Expand Down

0 comments on commit e50616a

Please sign in to comment.