From ac6ed7c1037d6734a622bfe7f4bcb1bbac099ff0 Mon Sep 17 00:00:00 2001 From: kalyanreddy Date: Thu, 23 Feb 2017 15:36:05 +0530 Subject: This patch includes updated kernel config file to enable CIFS and FUSE modules and updated scripts to check whether the node is up and running before execution of each test case. Change-Id: Ieebb693229d24e89d7ce92b0c1a26de411cce590 Signed-off-by: Gundarapu Kalyan Reddy --- ci/cyclicTestTrigger.sh | 23 +++++++++++++++++++++++ ci/test_kvmfornfv.sh | 4 ++++ 2 files changed, 27 insertions(+) (limited to 'ci') diff --git a/ci/cyclicTestTrigger.sh b/ci/cyclicTestTrigger.sh index b10acddd1..7ec3616a0 100755 --- a/ci/cyclicTestTrigger.sh +++ b/ci/cyclicTestTrigger.sh @@ -36,6 +36,29 @@ function verifyGuestImage { fi } +#Verifying the availability of the host after reboot +function connect_host { + n=0 + while [ $n -lt 25 ]; do + host_ping_test="ping -c 1 ${HOST_IP}" + eval $host_ping_test &> /dev/null + if [ ${?} -ne 0 ] ; then + sleep 10 + echo "host machine is still under reboot..trying to connect...." + n=$(($n+1)) + else + echo "resuming the execution of test cases....." + #Waiting for ssh to be available for the host machine. + sleep 30 + break + fi + if [ $n == 24 ];then + echo "Host machine unable to boot-up!" + exit 1 + fi + done +} + #Updating the pod.yaml file with HOST_IP,kvmfornfv_cyclictest_idle_idle.yaml with loops and interval function updateYaml { cd $WORKSPACE/tests/ diff --git a/ci/test_kvmfornfv.sh b/ci/test_kvmfornfv.sh index e87d6eb40..6a6d70c42 100755 --- a/ci/test_kvmfornfv.sh +++ b/ci/test_kvmfornfv.sh @@ -35,6 +35,10 @@ function packetForward { function cyclictest { test_case=$1 source $WORKSPACE/ci/cyclicTestTrigger.sh $HOST_IP $test_time $test_type $test_case + #Verifying whether the test node is up and running + connect_host + #Waiting for ssh to be available for the host machine. + sleep 10 #calculating and verifying sha512sum of the guestimage. if ! verifyGuestImage;then exit 1 -- cgit 1.2.3-korg