diff options
author | 2020-11-25 14:21:17 +0100 | |
---|---|---|
committer | 2020-11-25 14:21:17 +0100 | |
commit | 1093060e644b86cc969f4fc72e92be23c2d373d9 (patch) | |
tree | 0d281835c5adf7ae6f4928b1b4fe8fcd667e2c01 /jjb/common/include-agl-lava-jobs-submit.sh | |
parent | 45f88c9f60766da7d9f8a139bdba7c0820ee51ae (diff) |
Update of projects with coverage
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: Ie7955e06765a72ce6ef3f30d590df34a07dff226
Diffstat (limited to 'jjb/common/include-agl-lava-jobs-submit.sh')
-rw-r--r-- | jjb/common/include-agl-lava-jobs-submit.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index 830c30a4..b7c393d2 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -162,14 +162,21 @@ if [ -s job-result.fail ];then handle_skiplist handle_result fi - set -x -MSG_FAIL="CI-Image-Boot-Test fail on ${MACHINE}" -MSG_SUCCESS="CI-Image-Boot-Test success on ${MACHINE}" +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#LINES_PERCENT=##g' | head -1) + +MSG_FAIL="CI-Image-Boot-Test fail on ${MACHINE}. Coverage: Lines ${LINES_PERCENT:-0}% , Branches ${BRANCHES_PERCENT:-0}% +${JOB_URL}" +MSG_SUCCESS="CI-Image-Boot-Test success on ${MACHINE}. Coverage: Lines ${LINES_PERCENT:-0}% , Branches ${BRANCHES_PERCENT:-0}% +${JOB_URL}" + MSG_BUILD_LOG="${BUILD_URL}consoleFull" MSG_JOBFAIL="Failed jobs: $(cat job-result.fail)" +set +x + if [ $GOODJOB -eq 0 ];then #construct message cat << EOF > .msg |