Skip to content

Commit

Permalink
Fix hack/test-cmd.sh so that it passes on a local machine
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrzadkowski committed Mar 3, 2015
1 parent b583d4e commit 6ad2b86
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 81 deletions.
4 changes: 2 additions & 2 deletions hack/lib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ readonly red=$(tput setaf 1)
readonly green=$(tput setaf 2)

kube::test::clear_all() {
kubectl delete rc,pods --all
kubectl delete "${kube_flags[@]}" rc,pods --all
}

kube::test::get_object_assert() {
local object=$1
local request=$2
local expected=$3

res=$(kubectl get $object -o template -t "$request")
res=$(kubectl get "${kube_flags[@]}" $object -o template -t "$request")

if [[ "$res" =~ ^$expected$ ]]; then
echo -n ${green}
Expand Down
Loading

0 comments on commit 6ad2b86

Please sign in to comment.