diff options
author | kalyanreddy <reddyx.gundarapu@intel.com> | 2017-05-08 11:18:45 -0700 |
---|---|---|
committer | Kalyan reddy Gundarapu <reddyx.gundarapu@intel.com> | 2017-05-12 19:13:37 +0000 |
commit | b49cecbe031d91c0267fef8a2925e72c86f1e6a3 (patch) | |
tree | 91d7fbd50afde6840db353b9bdb5347156be93d9 /ci | |
parent | 4038e157f640ad185d5469c146c8f0faf23dd3ec (diff) |
Adding post-execute scripts to cyclictest execution
This patch is used to add post-execute scripts to yardstick node
context teardown to disable the ftrace soon after the completion
of cyclictest execution through yardstick.
Change-Id: I9cac5868c51c2c9ffd9f397574b53dc606aef2d8
Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/envs/cyclictest.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/envs/cyclictest.sh b/ci/envs/cyclictest.sh index 920a46b93..d1ae5c7fa 100755 --- a/ci/envs/cyclictest.sh +++ b/ci/envs/cyclictest.sh @@ -11,6 +11,7 @@ testName=$2 #idle_idle/stress_idle HOST_IP=$( getHostIP ) pod_config='/opt/scripts/pod.yaml' cyclictest_context_file='/opt/kvmfornfv_cyclictest_'${testName}'.yaml' +yardstick_prefix='/root/yardstick/yardstick/benchmark/scenarios/compute' # yardstick teardown path if [ ! -f ${pod_config} ] ; then echo "file ${pod_config} not found" @@ -22,6 +23,12 @@ if [ ! -f ${cyclictest_context_file} ] ; then exit 1 fi +#As yardstick executes only *.bash scripts, copy the post-execute script as .bash script +cp /opt/scripts/disable_trace.sh ${yardstick_prefix}/disable_trace.bash + +#Execution of the post-execute script copied requires re-installation of yardstick +( cd /root/yardstick ; python setup.py install ) + #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/" |