Skip to content

Commit

Permalink
try to findout can't find info issue
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 7effce8 commit a616fe2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gcov_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ lcov_genhtml_all()
lcov_merge_all()
{
cp -rf common_work $1/
# sudo rm unittest_total.info
sed -i "s#/__w/1/s/#/__w/1/sonic-gcov/common_work/gcov/#" unittest_total.info
mv unittest_total.info unittest_total

find . -name *.info > infolist
while read line
do
Expand All @@ -144,6 +144,14 @@ lcov_merge_all()
fi
done < infolist

mv unittest_total unittest_total.info
sed -i "s#/__w/1/s/#/__w/1/sonic-gcov/common_work/gcov/#" unittest_total.info
if [ ! -f "total.info" ]; then
lcov -o total.info -a unittest_total.info
else
lcov -o total.info -a total.info -a unittest_total.info
fi

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
Expand Down

0 comments on commit a616fe2

Please sign in to comment.