Merge pull request #625 from smarterclayton/quotes_not_necessary

The quotes around the coverfile are unnecessary
This commit is contained in:
Daniel Smith 2014-07-25 10:23:16 -07:00
commit b3ecfbde43
2 changed files with 3 additions and 3 deletions

View File

@ -36,10 +36,10 @@ cd "${KUBE_TARGET}"
echo "+++ Running unit tests" echo "+++ Running unit tests"
if [[ -n "$1" ]]; then 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 exit 0
fi fi
for package in $(find_test_dirs); do 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 done

View File

@ -36,7 +36,7 @@ find_test_dirs() {
} }
# -covermode=atomic becomes default with -race in Go >=1.3 # -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}" cd "${KUBE_TARGET}"