diff --git a/test/840_weave_kube_3_test.sh b/test/840_weave_kube_3_test.sh index e37ab6a4..5abe537e 100755 --- a/test/840_weave_kube_3_test.sh +++ b/test/840_weave_kube_3_test.sh @@ -41,12 +41,12 @@ done if [ -n "$COVERAGE" ]; then COVERAGE_ARGS="env:\\n - name: EXTRA_ARGS\\n value: \"-test.coverprofile=/home/weave/cover.prof --\"" else - COVERAGE_ARGS="env: []" + COVERAGE_ARGS="env:" fi # Ensure Kubernetes uses locally built container images and inject code coverage environment variable (or do nothing depending on $COVERAGE): sed -e "s%imagePullPolicy: Always%imagePullPolicy: Never%" \ - -e "s%env: \[\]%$COVERAGE_ARGS%" \ + -e "s%env:%$COVERAGE_ARGS%" \ "$(dirname "$0")/../prog/weave-kube/weave-daemonset-k8s-1.6.yaml" | run_on "$HOST1" "$KUBECTL apply -n kube-system -f -" sleep 5