mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
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.
This commit is contained in:
parent
fbd71c9c02
commit
f7948015bd
@ -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
|
||||||
|
@ -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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user