mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix "kubectl create with no args" test to verify exit code instead of evaluating (empty) stdout of the command.
This commit is contained in:
parent
b23230e616
commit
b639f6ece4
@ -128,7 +128,7 @@ for version in "${kube_api_versions[@]}"; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# passing no arguments to create is an error
|
# passing no arguments to create is an error
|
||||||
[ ! $(kubectl create) ]
|
! kubectl create
|
||||||
|
|
||||||
kube::log::status "Testing kubectl(${version}:pods)"
|
kube::log::status "Testing kubectl(${version}:pods)"
|
||||||
kubectl get pods "${kube_flags[@]}"
|
kubectl get pods "${kube_flags[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user