diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2017-03-11 01:25:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-11 01:25:35 +0000 |
commit | 0666e6b9c92cdba1d90c951423e5ef1fb2736c48 (patch) | |
tree | 9ad53f5df38018cfb25c6db51353bbe36310306f /ci/envs | |
parent | 52f993b8e89487ec9ee15a7fb4979e0f09a45b27 (diff) | |
parent | 878d38941df56e0392cb652efe3c5996592e7f39 (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')
-rwxr-xr-x | ci/envs/utils.sh | 14 |
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 +} |