Added Ampere_Openedge hardware type
[rec.git] / workflows / ric_automation.sh
index fbb39f9..b045970 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+set -xe
 #------------------------Pre-Modification----------------------------------------------------
 mkdir RIC
 cd RIC
@@ -125,8 +126,20 @@ sed -i 's,http://127.0.0.1:8879,http://127.0.0.1:8879/charts,g' "ric_install.sh"
 sed -i 's,local,localric,g' "ric_install.sh"
 
 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
+
+
+
+