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:
parent
c3adeda3cc
commit
95b78ecaa9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user