This patch includes scripts to verify the sha512sum of the
[kvmfornfv.git] / ci / test_kvmfornfv.sh
index 858aaf3..c739e80 100755 (executable)
@@ -19,10 +19,18 @@ elif [ ${test_type} == "daily" ];then
 elif [ ${test_type} == "merge" ];then
    echo "Test is not enabled for ${test_type}"
    exit 0
+else
+   echo "Incorrect test type ${test_type}"
+   exit 1
 fi
 
 source $WORKSPACE/ci/cyclicTestTrigger.sh $HOST_IP $test_time $test_type
 
+#calculating and verifying sha512sum of the guestimage.
+if ! verifyGuestImage;then
+   exit 1
+fi
+
 #Update cyclictest-node-context.yaml with test_time and pod.yaml with IP
 updateYaml
 
@@ -30,4 +38,8 @@ updateYaml
 env_clean
 
 #Creating a docker image with yardstick installed and launching ubuntu docker to run yardstick cyclic testcase
-runCyclicTest
+if runCyclicTest;then
+   exit 0
+else
+   exit 1
+fi