Merge pull request #6899 from nak3/fix-unittest-after-fail

Continue after failed unit test
pull/6/head
Eric Tune 2015-04-16 13:21:45 -07:00
commit 14eb70b1dc
1 changed files with 2 additions and 2 deletions

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}/}}"
${KUBE_RACE} ${KUBE_TIMEOUT} "${@+${@/#/${KUBE_GO_PACKAGE}/}}" || true
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}/{}"
"${KUBE_GO_PACKAGE}/{}" || true
COMBINED_COVER_PROFILE="${cover_report_dir}/combined-coverage.out"
{