summaryrefslogtreecommitdiffstats
path: root/ci/test_kvmfornfv.sh
diff options
context:
space:
mode:
authorkalyanreddy <reddyx.gundarapu@intel.com>2017-03-02 06:03:56 -0800
committerKalyan reddy Gundarapu <reddyx.gundarapu@intel.com>2017-03-21 05:50:08 +0000
commitf835f6520f491d554fa9655efe9e52dd8153c352 (patch)
treee785dc40e9f1c81ba2568ab2fc36de52e5c17a55 /ci/test_kvmfornfv.sh
parentd946629e1c1851dd12fd2f2664e9a12fc1b6c9bc (diff)
This patch includes updated scripts to enable ftrace and collect
logs for debugging high latency values. Change-Id: Ibdea5dab0c6d47eb6dd9d47d879fdd42dd95f8e4 Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
Diffstat (limited to 'ci/test_kvmfornfv.sh')
-rwxr-xr-xci/test_kvmfornfv.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/ci/test_kvmfornfv.sh b/ci/test_kvmfornfv.sh
index 27419232e..8199bf0e9 100755
--- a/ci/test_kvmfornfv.sh
+++ b/ci/test_kvmfornfv.sh
@@ -63,7 +63,7 @@ function cyclictest {
#Cleaning the environment before running cyclictest through yardstick
env_clean
#Creating a docker image with yardstick installed and launching ubuntu docker to run yardstick cyclic testcase
- if runCyclicTest;then
+ if runCyclicTest ${ftrace_enable};then
cyclictest_result=`expr ${cyclictest_result} + 0`
else
echo "Test case execution FAILED for ${test_case} environment"
@@ -105,13 +105,6 @@ function install_pcm {
'
}
-function ftrace_disable {
- sudo ssh root@${HOST_IP} "sh /root/workspace/scripts/disbale-trace.sh"
- sudo ssh root@${HOST_IP} "cd /tmp ; a=\$(ls -rt | tail -1) ; echo \$a ; mv \$a cyclictest_${env}.txt"
- sudo mkdir -p $WORKSPACE/build_output/log/kernel_trace
- sudo scp root@${HOST_IP}:/tmp/cyclictest_${env}.txt $WORKSPACE/build_output/log/kernel_trace/
-}
-
#Execution of testcases based on test type and test name from releng.
if [ ${test_type} == "verify" ];then
HOST_IP="10.10.100.21"
@@ -121,11 +114,9 @@ if [ ${test_type} == "verify" ];then
for env in ${cyclictest_env_verify[@]}
do
#Enabling ftrace for kernel debugging.
- sed -i '/host-setup1.sh/a\ \- \"enable-trace.sh\"' kvmfornfv_cyclictest_hostenv_guestenv.yaml
+ sed -i '/host-setup1.sh/a\ \- \"enable-trace.sh\"' $WORKSPACE/tests/kvmfornfv_cyclictest_hostenv_guestenv.yaml
#Executing cyclictest through yardstick.
cyclictest ${env}
- #disabling ftrace and collecting the logs to upload to artifact repository.
- ftrace_disable
sleep 10
done
#Execution of packet forwarding test cases.