aboutsummaryrefslogtreecommitdiffstats
path: root/csit/run-k8s-csit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'csit/run-k8s-csit.sh')
-rwxr-xr-xcsit/run-k8s-csit.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/csit/run-k8s-csit.sh b/csit/run-k8s-csit.sh
index 33cf2f8a..e348ca80 100755
--- a/csit/run-k8s-csit.sh
+++ b/csit/run-k8s-csit.sh
@@ -94,10 +94,19 @@ function build_robot_image () {
echo "---------------------------------------------"
echo "Installing Robot framework pod for running CSIT"
microk8s helm install csit-robot robot --set robot=$ROBOT_FILE --set "readiness={${READINESS_CONTAINERS[*]}}";
- echo "Please check the logs of policy-csit-robot pod for the test execution results"
+ print_robot_log
fi
}
+function print_robot_log () {
+ robotpod=$(microk8s kubectl get po | grep policy-csit)
+ podName=$(echo $robotpod | awk '{print $1}')
+ echo "The robot tests will begin once the policy components {${READINESS_CONTAINERS[*]}} are up and running..."
+ microk8s kubectl wait --for=condition=ready --timeout=180s pod/$podName
+ microk8s kubectl logs -f $podName
+ echo "Please check the logs of policy-csit-robot pod for the test execution results"
+}
+
function clone_models () {
GIT_TOP=$(git rev-parse --show-toplevel)
GERRIT_BRANCH=$(awk -F= '$1 == "defaultbranch" { print $2 }' \