summaryrefslogtreecommitdiffstats
path: root/ci/envs
diff options
context:
space:
mode:
Diffstat (limited to 'ci/envs')
-rwxr-xr-xci/envs/host-config2
-rwxr-xr-xci/envs/utils.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/ci/envs/host-config b/ci/envs/host-config
index e696fcde1..4a5d1b5a2 100755
--- a/ci/envs/host-config
+++ b/ci/envs/host-config
@@ -21,7 +21,7 @@ pcm_memory=/root/pcm/pcm-memory.x
# Isolated cpus for nfv, must be given as a range '-' and Numa node1 CPU's should be considered
host_isolcpus=`lscpu | grep "NUMA node1 CPU(s)"| awk -F ':' '{print \$2}' | sed 's/[[:space:]]//g'`
first=$(echo ${host_isolcpus} | cut -f1 -d-)
-last=$(echo ${host_isolcpus} | cut -f2 -d-)
+last=$(echo ${host_isolcpus} | cut -f2 -d- | cut -d',' -f1 )
# Bind cpus from host_isolcpus range for QEMU processor threads
i=0
diff --git a/ci/envs/utils.sh b/ci/envs/utils.sh
index 5e4f1c470..c2c0f85a6 100755
--- a/ci/envs/utils.sh
+++ b/ci/envs/utils.sh
@@ -43,7 +43,7 @@ function getQemuVersion {
function checkRPMNames {
rpm_dir="/root/workspace/rpm"
if [ -d "$WORKSPACE" ];then
- cd $WORKSPACE/build_output 2>/dev/null;RPMCOUNT=`ls kvmfornfv-* | wc -l`
+ 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