X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Fcyclictest.sh;h=2af22afad5fa0aaa6973b6a42b00ad3edcf2873b;hb=refs%2Fchanges%2F99%2F22799%2F5;hp=c261fe05d3ee827ce455f1b9f1048ec5cb347a64;hpb=42e2343970d47d0aa081a565c0f51873778e555c;p=kvmfornfv.git diff --git a/ci/envs/cyclictest.sh b/ci/envs/cyclictest.sh index c261fe05d..2af22afad 100755 --- 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 ########################################################### +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 @@ -19,9 +21,15 @@ if [ ! -f ${cyclictest_context_file} ] ; then fi #setting up of image for launching guest vm. -sudo ssh root@10.2.117.23 "cp /root/images/guest1.qcow2 /root/" +ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ +root@$HOST_IP "cp /root/images/guest1.qcow2 /root/" #Running cyclictest through yardstick 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