Execution of kvm4nfv cyclictest based on job type.
[kvmfornfv.git] / ci / envs / cyclictest.sh
old mode 100644 (file)
new mode 100755 (executable)
index e4dd993..747f347
@@ -4,7 +4,9 @@
 ## Invoking this script from ubuntu docker container runs
 ## cyclictest through yardstick
 ###########################################################
+source utils.sh
 
+HOST_IP=$( getHostIP )
 pod_config='/opt/pod.yaml'
 cyclictest_context_file='/opt/cyclictest-node-context.yaml'
 
@@ -18,6 +20,10 @@ if [ ! -f ${cyclictest_context_file} ] ; then
     exit 1
 fi
 
+#setting up of image for launching guest vm.
+sudo ssh root@$HOST_IP "cp /root/images/guest1.qcow2 /root/"
+
 #Running cyclictest through yardstick
-yardstick task start ${cyclictest_context_file}
-mv /tmp/yardstick.out  /opt/
+yardstick -d task start ${cyclictest_context_file}
+chmod 777 /tmp/yardstick.out
+cat /tmp/yardstick.out  > /opt/yardstick.out