diff --git a/tests/integration/kubernetes/k8s-configmap.bats b/tests/integration/kubernetes/k8s-configmap.bats index 8b38a7ce6d..e89174fe93 100644 --- a/tests/integration/kubernetes/k8s-configmap.bats +++ b/tests/integration/kubernetes/k8s-configmap.bats @@ -40,8 +40,8 @@ setup() { kubectl wait --for=condition=Ready --timeout=$timeout pod "$pod_name" # Check env - kubectl exec $pod_name -- "${exec_command[@]}" | grep "KUBE_CONFIG_1=value-1" - kubectl exec $pod_name -- "${exec_command[@]}" | grep "KUBE_CONFIG_2=value-2" + grep_pod_exec_output "${pod_name}" "KUBE_CONFIG_1=value-1" "${exec_command[@]}" + grep_pod_exec_output "${pod_name}" "KUBE_CONFIG_2=value-2" "${exec_command[@]}" } teardown() {