Change-Id: I2abd680fa9533219de4d462922507f4826d837fa
Signed-off-by: kinkwan_tsui <kinkwan.tsui@nokia.com>
#--------------kill helm---------------------------------------------------------------------
pkill helm
#------------checking the status of the rictest pod--------------------------------------
+sleep 30
command="$(kubectl get po --no-headers --namespace=rictest --field-selector status.phase=Completed 2> /dev/null)"
if [[ $command != "" ]]; then
exit 1
#--------------kill helm---------------------------------------------------------------------
pkill helm
#-------------checking the output-------------------------------------------------------------
+for i in `seq 1 10`
+do
command="$(kubectl get po --no-headers --namespace=ricplatform --field-selector status.phase!=Running 2> /dev/null)"
if [[ $command != "" ]]; then
- exit 1
+ sleep 30
+else
+ exit 0
fi
+done
+exit 1
+
+
#--------------kill helm---------------------------------------------------------------------
pkill helm
#----------checking the status of the pods------------------
+sleep 30
command="$(kubectl get po --no-headers --namespace=ricplatform --field-selector status.phase!=Running 2> /dev/null)"
if [[ $command != "" ]]; then
exit 1