Skip to content

Commit

Permalink
adjust path for info files to merge
Browse files Browse the repository at this point in the history
Signed-off-by: pettershao-ragilenetworks <[email protected]>
  • Loading branch information
pettershao-ragilenetworks authored and sdk committed Nov 3, 2022
1 parent a74abff commit aeba308
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gcov_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ lcov_genhtml_all()
lcov_merge_all()
{
cp -rf common_work $1/
sudo rm unittest_total.info
# sudo rm unittest_total.info
sed -i "s#/__w/1/s/#/__w/1/sonic-gcov/common_work/gcov/#" unittest_total.info
find . -name *.info > infolist
while read line
do
Expand All @@ -143,7 +144,10 @@ lcov_merge_all()
fi
done < infolist

# lcov --extract total.info '*sonic-gcov/*' -o total.info
lcov --extract total.info '*sonic-gcov/*' -o total.info
lcov --remove total.info '*/SAI/*' -o total.info
lcov --remove total.info '*/libs/*' -o total.info
lcov --remove total.info '*/debian/*' -o total.info
# sed -i "s#/#$1/common_work/#" unittest_total.info


Expand Down Expand Up @@ -299,6 +303,7 @@ gcov_support_generate_report()
rm -rf common_work/*

cp -rf ${container_id} gcov_output/
rm -rf ${container_id}
done < container_dir_list

# generate report with code
Expand Down

0 comments on commit aeba308

Please sign in to comment.