summaryrefslogtreecommitdiffstats
path: root/ci/test_kvmfornfv.sh
diff options
context:
space:
mode:
authorkalyanreddy <reddyx.gundarapu@intel.com>2016-09-16 16:26:43 +0530
committerKalyanreddy <reddyx.gundarapu@intel.com>2016-09-21 15:45:41 +0530
commit40a5f2a48ab343bf24a69af2b1b8bcd09798be3c (patch)
tree6640f06ed7580a147584263dcd0c5f808b207805 /ci/test_kvmfornfv.sh
parentb8f6485d5a5c66f0fce566e59b8b5891c6a7f571 (diff)
This patch includes scripts to verify the sha512sum of the
guest image. Also contains scripts to exit the test if the test_type is not verify/daily/merge. Change-Id: Ibbb0d30302095282b539db7293084de007db6ddc Co-Authored-By: Shravani <shravani.p@tcs.com> Signed-off-by: kalyanreddy <reddyx.gundarapu@intel.com>
Diffstat (limited to 'ci/test_kvmfornfv.sh')
-rwxr-xr-xci/test_kvmfornfv.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/ci/test_kvmfornfv.sh b/ci/test_kvmfornfv.sh
index 858aaf394..c739e807e 100755
--- a/ci/test_kvmfornfv.sh
+++ b/ci/test_kvmfornfv.sh
@@ -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