Revert "Continue after failed unit test"

This reverts commit f70752d9e1.

This change caused Travis and Shippable to report success on all test
runs, even if any tests failed or timed out.
This commit is contained in:
Jeff Grafton
2015-04-20 11:59:18 -07:00
parent 4e811201a0
commit fafd1df7a6

View File

@@ -151,7 +151,7 @@ runTests() {
if [[ ! ${KUBE_COVER} =~ ^[yY]$ ]]; then
kube::log::status "Running unit tests without code coverage"
go test "${goflags[@]:+${goflags[@]}}" \
${KUBE_RACE} ${KUBE_TIMEOUT} "${@+${@/#/${KUBE_GO_PACKAGE}/}}" || true
${KUBE_RACE} ${KUBE_TIMEOUT} "${@+${@/#/${KUBE_GO_PACKAGE}/}}"
return 0
fi
@@ -173,7 +173,7 @@ runTests() {
-cover -covermode="${KUBE_COVERMODE}" \
-coverprofile="${cover_report_dir}/{}/${cover_profile}" \
"${cover_params[@]+${cover_params[@]}}" \
"${KUBE_GO_PACKAGE}/{}" || true
"${KUBE_GO_PACKAGE}/{}"
COMBINED_COVER_PROFILE="${cover_report_dir}/combined-coverage.out"
{