diff --git a/build/build-image/run-tests.sh b/build/build-image/run-tests.sh index c305ca4e5da..5f1ee1a60eb 100755 --- a/build/build-image/run-tests.sh +++ b/build/build-image/run-tests.sh @@ -36,10 +36,10 @@ cd "${KUBE_TARGET}" echo "+++ Running unit tests" if [[ -n "$1" ]]; then - go test -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1" + go test -cover -coverprofile=tmp.out "$KUBE_GO_PACKAGE/$1" exit 0 fi for package in $(find_test_dirs); do - go test -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}" + go test -cover -coverprofile=tmp.out "${KUBE_GO_PACKAGE}/${package}" done diff --git a/hack/test-go.sh b/hack/test-go.sh index 7ff89482d9c..fe14687c6f4 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -36,7 +36,7 @@ find_test_dirs() { } # -covermode=atomic becomes default with -race in Go >=1.3 -KUBE_COVER="-cover -covermode=atomic -coverprofile=\"tmp.out\"" +KUBE_COVER="-cover -covermode=atomic -coverprofile=tmp.out" cd "${KUBE_TARGET}"