X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Futils.sh;h=c2c0f85a6cc28cbd8c96910c48b1c893ae493d1b;hb=d651cc71797f8f32b0fe40ca4ee1c21d50558fd1;hp=89df273ac926fd9cc351c49928318918a4451030;hpb=2046178d894438b492d93f30941076ee7964f6ab;p=kvmfornfv.git diff --git a/ci/envs/utils.sh b/ci/envs/utils.sh index 89df273ac..c2c0f85a6 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-* 2>/dev/null | wc -l` + if [ $RPMCOUNT -ne 0 ];then + echo "Testcases are not executed for apex_build" + exit 0 + else + echo "Continue test execution" + fi + fi +}