Skip to content

Commit

Permalink
Update ut.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
YunhuiChen authored Mar 8, 2022
1 parent e7d47b1 commit 15373f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,15 @@ sudo cp ${WORKSPACE}*core* /var/lib/jenkins/log/curve_unittest/$BUILD_NUMBER/ |

cd bazel-bin
cp ${WORKSPACE}/tools/ci/*.py ./
./gen-coverage.py

cp ${WORKSPACE}/tools/ci/check_coverage.sh ./
if [ $1 == "curvebs" ];then
./gen-coverage_bs.py
./check_coverage.sh "curvebs"
elif [ $1 == "curvefs" ];then
./gen-coverage_fs.py
./check_coverage.sh "curvefs"
fi
cp -r coverage ${WORKSPACE}
gcovr -x -r src -e ".*test/.*" -e ".*\.h" -e ".*usr/include/.*" -e ".*/thirdparties/*" -e "/usr/lib/*" -e ".*/external/*" -e ".*/bazel_out/*" -e "/usr/local/include/*" -e "test/*" -e ".*main\.cpp" -e ".*/_objs/snapshotcloneserver/*" -e ".*/_objs/mds/*" --output coverage.xml
cp coverage.xml ${WORKSPACE}

0 comments on commit 15373f9

Please sign in to comment.