adding a loop and delay time 01/901/1
authorkinkwan_tsui <kinkwan.tsui@nokia.com>
Thu, 30 May 2019 13:25:53 +0000 (16:25 +0300)
committerkinkwan_tsui <kinkwan.tsui@nokia.com>
Thu, 30 May 2019 13:31:25 +0000 (16:31 +0300)
Change-Id: I2abd680fa9533219de4d462922507f4826d837fa
Signed-off-by: kinkwan_tsui <kinkwan.tsui@nokia.com>
workflows/nanobot.sh [changed mode: 0755->0644]
workflows/ric_automation.sh [changed mode: 0755->0644]
workflows/robot_test_ric.sh [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index ba13b4b..cd54507
@@ -60,6 +60,7 @@ kubectl logs $nanobot_pod -n rictest
 #--------------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
old mode 100755 (executable)
new mode 100644 (file)
index 46768e6..795436f
@@ -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
+
+
 
 
old mode 100755 (executable)
new mode 100644 (file)
index fff75eb..fe767ea
@@ -58,6 +58,7 @@ bash ete-k8s.sh ricplatform health
 #--------------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