mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 22:20:18 +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:
@@ -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[@]}"
|
||||||
|
Reference in New Issue
Block a user