Passing KUBE_TEST_ARGS variable to make through process environment

instead of command line flags.
'$' character has special meaning in make, prefer passing variables
through process environment.
This commit is contained in:
Yecheng Fu 2018-07-11 16:52:08 +08:00
parent bababe08f6
commit fda0edcd1c

View File

@ -68,10 +68,12 @@ runTests() {
kube::log::status "Running integration test cases"
KUBE_RACE="-race"
make -C "${KUBE_ROOT}" test \
# KUBE_TEST_ARGS may contain '$' character which has special meaning in make,
# pass it through process environment instead.
KUBE_TEST_ARGS="${KUBE_TEST_ARGS:-} ${SHORT:--short=true} --vmodule=${KUBE_TEST_VMODULE} --alsologtostderr=true" \
make -C "${KUBE_ROOT}" test \
WHAT="${WHAT:-$(kube::test::find_integration_test_dirs | paste -sd' ' -)}" \
GOFLAGS="${GOFLAGS:-}" \
KUBE_TEST_ARGS="${KUBE_TEST_ARGS:-} ${SHORT:--short=true} --vmodule=${KUBE_TEST_VMODULE} --alsologtostderr=true" \
KUBE_RACE="" \
KUBE_TIMEOUT="${KUBE_TIMEOUT}" \
KUBE_TEST_API_VERSIONS="$1"