the apex.conf file is valid or not and to update the
stress_isolcpus to 22-43 on console
Change-Id: I6a2e78f51f2371042bcbfa4f8c3e31b316938528
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
echo "Checking out on $branch branch"
echo "Commit-id is ${commit_id}"
git checkout -f ${commit_id}
echo "Checking out on $branch branch"
echo "Commit-id is ${commit_id}"
git checkout -f ${commit_id}
+ if [ $? -ne 0 ];then
+ echo "Please check the commit-id provided in apex.conf"
+ exit 1
+ fi
# 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-)
# 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
# Bind cpus from host_isolcpus range for QEMU processor threads
i=0
function checkRPMNames {
rpm_dir="/root/workspace/rpm"
if [ -d "$WORKSPACE" ];then
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
if [ $RPMCOUNT -ne 0 ];then
echo "Testcases are not executed for apex_build"
exit 0