Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "This patch contains updated Dockerfile to modify SSH Timeout value for the...
[kvmfornfv.git]
/
ci
/
envs
/
cyclictest.sh
diff --git
a/ci/envs/cyclictest.sh
b/ci/envs/cyclictest.sh
old mode 100644
(file)
new mode 100755
(executable)
index
e4dd993
..
2af22af
--- a/
ci/envs/cyclictest.sh
+++ b/
ci/envs/cyclictest.sh
@@
-4,8
+4,10
@@
## Invoking this script from ubuntu docker container runs
## cyclictest through yardstick
###########################################################
## Invoking this script from ubuntu docker container runs
## cyclictest through yardstick
###########################################################
+source utils.sh
-pod_config='/opt/pod.yaml'
+HOST_IP=$( getHostIP )
+pod_config='/opt/scripts/pod.yaml'
cyclictest_context_file='/opt/cyclictest-node-context.yaml'
if [ ! -f ${pod_config} ] ; then
cyclictest_context_file='/opt/cyclictest-node-context.yaml'
if [ ! -f ${pod_config} ] ; then
@@
-18,6
+20,16
@@
if [ ! -f ${cyclictest_context_file} ] ; then
exit 1
fi
exit 1
fi
+#setting up of image for launching guest vm.
+ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
+root@$HOST_IP "cp /root/images/guest1.qcow2 /root/"
+
#Running cyclictest through yardstick
#Running cyclictest through yardstick
-yardstick task start ${cyclictest_context_file}
-mv /tmp/yardstick.out /opt/
+yardstick -d task start ${cyclictest_context_file}
+output=$?
+chmod 777 /tmp/yardstick.out
+cat /tmp/yardstick.out > /opt/yardstick.out
+if [ $output != 0 ];then
+ echo "Someproblem with execution of Yardstick"
+ exit 1
+fi