Skip to content

Commit

Permalink
[Fix](bangc-ops): revise coverage.sh to print operator only info. (Ca…
Browse files Browse the repository at this point in the history
  • Loading branch information
DanieeelLiu authored Feb 28, 2023
1 parent 8e75627 commit f8bc3e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,17 @@ function process () {
# generate report
genhtml ${temp_dir_}/info/* -o result

for arg in ${test_cmd_}; do
if [[ ${arg} == "--gtest_filter="* ]]; then
op_dir_name=${arg##*=}
fi
done
# show the coverage test report
html2text ${temp_dir_}/result/index.html
if [[ ! -z ${op_dir_name} ]]; then
html2text ${temp_dir_}/result/kernels/${op_dir_name}/index.html
else
html2text ${temp_dir_}/result/index.html
fi
}

function main () {
Expand Down

0 comments on commit f8bc3e5

Please sign in to comment.