summaryrefslogtreecommitdiffstats
path: root/ci/test_kvmfornfv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/test_kvmfornfv.sh')
-rwxr-xr-xci/test_kvmfornfv.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/ci/test_kvmfornfv.sh b/ci/test_kvmfornfv.sh
index 858aaf394..e9f520059 100755
--- a/ci/test_kvmfornfv.sh
+++ b/ci/test_kvmfornfv.sh
@@ -19,15 +19,27 @@ 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
-#Update cyclictest-node-context.yaml with test_time and pod.yaml with IP
+#calculating and verifying sha512sum of the guestimage.
+if ! verifyGuestImage;then
+ exit 1
+fi
+
+#Update kvmfornfv_cyclictest_idle_idle.yaml with test_time and pod.yaml with IP
updateYaml
#Cleaning up the test environment before running cyclictest through yardstick.
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