Fix "kubectl create with no args" test to verify exit code instead of evaluating (empty) stdout of the command.

This commit is contained in:
Eric Mountain 2015-02-13 23:18:24 +01:00
parent b23230e616
commit b639f6ece4

View File

@ -128,7 +128,7 @@ for version in "${kube_api_versions[@]}"; do
fi
# passing no arguments to create is an error
[ ! $(kubectl create) ]
! kubectl create
kube::log::status "Testing kubectl(${version}:pods)"
kubectl get pods "${kube_flags[@]}"