From 95b78ecaa92dde8c15496e4ef9a005752d5f65f0 Mon Sep 17 00:00:00 2001 From: Dan Mihai Date: Thu, 25 Jul 2024 16:50:34 +0000 Subject: [PATCH] tests: k8s-exec: reuse sh_command variable Reuse sh_command variable instead of repeading "sh". Signed-off-by: Dan Mihai --- tests/integration/kubernetes/k8s-exec.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/kubernetes/k8s-exec.bats b/tests/integration/kubernetes/k8s-exec.bats index 1fac31ad72..94eb325213 100644 --- a/tests/integration/kubernetes/k8s-exec.bats +++ b/tests/integration/kubernetes/k8s-exec.bats @@ -60,7 +60,7 @@ EOF ## Case for return value ### Command return non-zero code - run bash -c "kubectl exec -i $pod_name -- sh <<-EOF + run bash -c "kubectl exec -i $pod_name -- "$sh_command" <<-EOF exit 123 EOF" echo "run status: $status" 1>&2