From 23ce08a7d0af20c087ac3e5fdf34fcf8e488265e Mon Sep 17 00:00:00 2001 From: Xiangyang Chu Date: Thu, 25 Jul 2019 14:42:23 +0800 Subject: [PATCH] Fix review comments, will squash later. --- test/cmd/legacy-script.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cmd/legacy-script.sh b/test/cmd/legacy-script.sh index d11e1aa1e03..9bef7b634e3 100755 --- a/test/cmd/legacy-script.sh +++ b/test/cmd/legacy-script.sh @@ -315,17 +315,17 @@ runTests() { } kube_flags=( - -s "http://127.0.0.1:${API_PORT}" + '-s' "http://127.0.0.1:${API_PORT}" ) # token defined in hack/testdata/auth-tokens.csv kube_flags_with_token=( - -s "https://127.0.0.1:${SECURE_API_PORT}" "--token=admin-token" "--insecure-skip-tls-verify=true" + '-s' "https://127.0.0.1:${SECURE_API_PORT}" '--token=admin-token' '--insecure-skip-tls-verify=true' ) if [[ -z "${ALLOW_SKEW:-}" ]]; then - kube_flags+=("--match-server-version") - kube_flags_with_token+=("--match-server-version") + kube_flags+=('--match-server-version') + kube_flags_with_token+=('--match-server-version') fi if kube::test::if_supports_resource "${nodes}" ; then [ "$(kubectl get nodes -o go-template='{{ .apiVersion }}' "${kube_flags[@]}")" == "v1" ] @@ -397,7 +397,7 @@ runTests() { do # running of kubeadm is captured in hack/make-targets/test-cmd.sh if [[ "${pkg}" != "kubeadm" ]]; then - record_command run_"${pkg}"_tests + record_command "run_${pkg}_tests" fi done cleanup_tests