mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Continue after failed unit test
This commit is contained in:
parent
6781441307
commit
f70752d9e1
@ -150,7 +150,7 @@ runTests() {
|
|||||||
if [[ ! ${KUBE_COVER} =~ ^[yY]$ ]]; then
|
if [[ ! ${KUBE_COVER} =~ ^[yY]$ ]]; then
|
||||||
kube::log::status "Running unit tests without code coverage"
|
kube::log::status "Running unit tests without code coverage"
|
||||||
go test "${goflags[@]:+${goflags[@]}}" \
|
go test "${goflags[@]:+${goflags[@]}}" \
|
||||||
${KUBE_RACE} ${KUBE_TIMEOUT} "${@+${@/#/${KUBE_GO_PACKAGE}/}}"
|
${KUBE_RACE} ${KUBE_TIMEOUT} "${@+${@/#/${KUBE_GO_PACKAGE}/}}" || true
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ runTests() {
|
|||||||
-cover -covermode="${KUBE_COVERMODE}" \
|
-cover -covermode="${KUBE_COVERMODE}" \
|
||||||
-coverprofile="${cover_report_dir}/{}/${cover_profile}" \
|
-coverprofile="${cover_report_dir}/{}/${cover_profile}" \
|
||||||
"${cover_params[@]+${cover_params[@]}}" \
|
"${cover_params[@]+${cover_params[@]}}" \
|
||||||
"${KUBE_GO_PACKAGE}/{}"
|
"${KUBE_GO_PACKAGE}/{}" || true
|
||||||
|
|
||||||
COMBINED_COVER_PROFILE="${cover_report_dir}/combined-coverage.out"
|
COMBINED_COVER_PROFILE="${cover_report_dir}/combined-coverage.out"
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user