This patch includes building of the kernel rpm's for the commit id
[kvmfornfv.git] / ci / envs / utils.sh
index 89df273..5e4f1c4 100755 (executable)
@@ -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
+}