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>
HOST_IP=$( getHostIP )
pod_config='/opt/scripts/pod.yaml'
cyclictest_context_file='/opt/kvmfornfv_cyclictest_'${testName}'.yaml'
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"
if [ ! -f ${pod_config} ] ; then
echo "file ${pod_config} not found"
+#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/"
#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/"
type: Node
name: LF
file: /opt/scripts/pod.yaml
type: Node
name: LF
file: /opt/scripts/pod.yaml
+ env:
+ type: script
+ prefix: yardstick.benchmark.scenarios.compute
+ teardown:
+ -
+ kvm:
+ script: disable_trace.bash