X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Futils.sh;h=5e4f1c4702dd84ff2d73f542e3e1ef8047897819;hb=878d38941df56e0392cb652efe3c5996592e7f39;hp=89df273ac926fd9cc351c49928318918a4451030;hpb=77e6660ea78c5934e4b606a5342c4e0e64be1de6;p=kvmfornfv.git diff --git a/ci/envs/utils.sh b/ci/envs/utils.sh index 89df273ac..5e4f1c470 100755 --- a/ci/envs/utils.sh +++ b/ci/envs/utils.sh @@ -39,4 +39,16 @@ function getQemuVersion { fi echo ${RPMVERSION} } - +#Check RPM names to continue the execution of testcases +function checkRPMNames { + rpm_dir="/root/workspace/rpm" + if [ -d "$WORKSPACE" ];then + cd $WORKSPACE/build_output 2>/dev/null;RPMCOUNT=`ls kvmfornfv-* | wc -l` + if [ $RPMCOUNT -ne 0 ];then + echo "Testcases are not executed for apex_build" + exit 0 + else + echo "Continue test execution" + fi + fi +}