diff options
author | 2020-12-07 18:02:40 +0100 | |
---|---|---|
committer | 2020-12-07 18:02:40 +0100 | |
commit | 39c2a8efaa33a2f2906b589d8953a05d74ba640a (patch) | |
tree | 832c3d213a15811338394dda4b1641e460434657 /jjb/common/include-agl-lava-jobs-submit.sh | |
parent | c8a33ef6c24893024a73eb9ff859a465df63edcf (diff) |
Fix grep call for coverage data
Change-Id: Ibd69c1c9e34faa0226ce2de96d31713bf64e1b3d
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-agl-lava-jobs-submit.sh')
-rw-r--r-- | jjb/common/include-agl-lava-jobs-submit.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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}% |