From b639f6ece49a39c2d460f66f41f62cd64012dbdc Mon Sep 17 00:00:00 2001 From: Eric Mountain Date: Fri, 13 Feb 2015 23:18:24 +0100 Subject: [PATCH] Fix "kubectl create with no args" test to verify exit code instead of evaluating (empty) stdout of the command. --- hack/test-cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/test-cmd.sh b/hack/test-cmd.sh index 2fd73970294..3c802704f08 100755 --- a/hack/test-cmd.sh +++ b/hack/test-cmd.sh @@ -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[@]}"