1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-08 08:27:24 +00:00

tests: k8s-exec: reuse sh_command variable

Reuse sh_command variable instead of repeading "sh".

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai 2024-07-25 16:50:34 +00:00
parent c3adeda3cc
commit 95b78ecaa9

View File

@ -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