mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-20 00:07:55 +00:00
tests: k8s-policy-pod: avoid word splitting
Avoid potential word splitting when using array of command args array. Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
@@ -64,7 +64,7 @@ wait_for_pod_ready() {
|
|||||||
|
|
||||||
@test "Able to read env variables sourced from configmap using envFrom" {
|
@test "Able to read env variables sourced from configmap using envFrom" {
|
||||||
wait_for_pod_ready
|
wait_for_pod_ready
|
||||||
expected_env_var=$(kubectl exec "${pod_name}" -- ${exec_command[@]})
|
expected_env_var=$(kubectl exec "${pod_name}" -- "${exec_command[@]}")
|
||||||
[ "$expected_env_var" = "value-3" ] || fail "expected_env_var is not equal to value-3"
|
[ "$expected_env_var" = "value-3" ] || fail "expected_env_var is not equal to value-3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user