Skip to content

Commit

Permalink
improve test script (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: YujiOshima <[email protected]>
  • Loading branch information
YujiOshima authored and k8s-ci-robot committed Apr 17, 2018
1 parent b5900f0 commit 6c8e257
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ cd ${GO_DIR}
./deploy.sh

TIMEOUT=60
until kubectl get pods -n katib | grep 1/1 | [[ $(wc -l) -eq 7 ]]; do
PODNUM=$(kubectl get pods -n katib | grep -v NAME | wc -l)
until kubectl get pods -n katib | grep 1/1 | [[ $(wc -l) -eq $PODNUM ]]; do
sleep 10
TIMEOUT=$(( TIMEOUT - 1 ))
if [[ $TIMEOUT -eq 0 ]];then
echo "NG"
kubectl get pods -n katib
exit 1
fi
done
Expand Down

0 comments on commit 6c8e257

Please sign in to comment.