From 39c2a8efaa33a2f2906b589d8953a05d74ba640a Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Mon, 7 Dec 2020 18:02:40 +0100 Subject: Fix grep call for coverage data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibd69c1c9e34faa0226ce2de96d31713bf64e1b3d Signed-off-by: Jan-Simon Möller --- jjb/common/include-agl-lava-jobs-submit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jjb') diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index b2769c97..bbd513e9 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -185,8 +185,8 @@ if [ -s job-result.fail ];then handle_result fi set -x -LINES_PERCENT=$(grep LINES_PERCENT= $JOB_LOG | sed -e 's#LINES_PERCENT=##g' | head -1) -BRANCHES_PERCENT=$(grep BRANCHES_PERCENT= $JOB_LOG | sed -e 's#BRANCHES_PERCENT=##g' | head -1) +LINES_PERCENT=$(grep LINES_PERCENT= $JOB_LOG | sed -e 's#LINES_PERCENT=##g' | sed -e 's#+ ##g' | head -1) +BRANCHES_PERCENT=$(grep BRANCHES_PERCENT= $JOB_LOG | sed -e 's#BRANCHES_PERCENT=##g' | sed -e 's#+ ##g' | head -1) if [ -n $LINES_PERCENT -a -n $BRANCHES_PERCENT ] ; then MSG_FAIL="CI-Image-Boot-Test fail on ${MACHINE}. Coverage: Lines ${LINES_PERCENT:-0}% , Branches ${BRANCHES_PERCENT:-0}% -- cgit 1.2.3-korg