X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Ftest_kvmfornfv.sh;h=850ba4eadaede3d1baa3384a1c8f667b03ee995d;hb=fec69427c654e3dc2022b4eaebbb1e294babdcd1;hp=5d886dedcfa50ba8a44c37c2cfe957b7f14c71f2;hpb=156570aeb2bd567890da31e4efecbe48d7129b8b;p=kvmfornfv.git diff --git a/ci/test_kvmfornfv.sh b/ci/test_kvmfornfv.sh index 5d886dedc..850ba4ead 100755 --- a/ci/test_kvmfornfv.sh +++ b/ci/test_kvmfornfv.sh @@ -20,6 +20,14 @@ cyclictest_result=0 #exit code of cyclictest packetforward_result=0 #exit code of packet forward source $WORKSPACE/ci/envs/host-config +#check if any kernel rpms available for testing +rpm_count=`ls -1 $WORKSPACE/build_output/*.rpm 2>/dev/null | wc -l` +if [ $rpm_count = 0 ];then + echo "This patch is used for building kernel debian packages required by compass installer and \ +the test environment for testing debain packages is not available" + exit 0 +fi + function packetForward { #executing packet forwarding test cases based on the job type. if [ ${test_type} == "verify" ];then @@ -140,8 +148,6 @@ if [ ${test_type} == "verify" ];then test_exit 0 fi elif [ ${test_type} == "daily" ];then - echo "Daily job test cases execution disabled temporarily" - exit 0 getTestParams install_pcm if [ ${test_name} == "packet_forward" ];then @@ -165,6 +171,8 @@ elif [ ${test_type} == "daily" ];then sed -i '/host-setup1.sh/a\ \- \"enable-trace.sh\"' 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 5 done else