summaryrefslogtreecommitdiffstats
path: root/ci/envs/utils.sh
diff options
context:
space:
mode:
authorJiang, Yunhong <yunhong.jiang@intel.com>2017-03-11 01:25:35 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-11 01:25:35 +0000
commit0666e6b9c92cdba1d90c951423e5ef1fb2736c48 (patch)
tree9ad53f5df38018cfb25c6db51353bbe36310306f /ci/envs/utils.sh
parent52f993b8e89487ec9ee15a7fb4979e0f09a45b27 (diff)
parent878d38941df56e0392cb652efe3c5996592e7f39 (diff)
Merge "This patch includes building of the kernel rpm's for the commit id provided in apex.conf file and renaming of the kernel rpm's in the format kvmfornfv-commitid-apex-kernel-[devel/header]-4.4.6_rt14_centos.x86_64.rpm"
Diffstat (limited to 'ci/envs/utils.sh')
-rwxr-xr-xci/envs/utils.sh14
1 files changed, 13 insertions, 1 deletions
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
+}