X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=rec.git;a=blobdiff_plain;f=workflows%2Fric_automation.sh;fp=workflows%2Fric_automation.sh;h=795436f101153408b4f871be2ef947ae3af5930c;hp=46768e639b04a3d2cbbaf69ccc17b5eeb0ec46d3;hb=b9b9fff464110abf2659acef5a85576dbb905046;hpb=9bc4b7ed01d2035bf8fb07e72b2ad4bd140bb9da diff --git a/workflows/ric_automation.sh b/workflows/ric_automation.sh old mode 100755 new mode 100644 index 46768e6..795436f --- a/workflows/ric_automation.sh +++ b/workflows/ric_automation.sh @@ -128,9 +128,17 @@ bash -x ./ric_install.sh #--------------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 + +