From f7948015bd1544feeb75a4e550637962a79d4ea8 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Fri, 25 Jul 2014 13:11:45 -0400 Subject: [PATCH] The quotes around the file should not be necessary In Go 1.2 on the Mac they result in a file created with actual quotes. --- build/build-image/run-tests.sh | 4 ++-- hack/test-go.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/build-image/run-tests.sh b/build/build-image/run-tests.sh index c305ca4e5daed..5f1ee1a60eb6e 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 7ff89482d9c69..fe14687c6f4a0 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}"