mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
tools/gcov: ignore lcov error
When some coverage files cannot be parsed correctly, skip the current error file and continue to generate coverage report Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
7516da1650
commit
fbaa7b29f4
1 changed files with 2 additions and 2 deletions
|
|
@ -81,10 +81,10 @@ if [ "$files" == "0" ] ;then
|
|||
fi
|
||||
|
||||
# Generate coverage text report
|
||||
lcov -c -d ${GCOV_DIR}/data -o coverage.info --rc lcov_branch_coverage=1 ${GCOV_TOOL}
|
||||
lcov -c -d ${GCOV_DIR}/data -o coverage.info --rc lcov_branch_coverage=1 ${GCOV_TOOL} --ignore-errors gcov
|
||||
|
||||
# Generate coverage page report
|
||||
genhtml --branch-coverage -o result coverage.info
|
||||
genhtml --branch-coverage -o result coverage.info --ignore-errors source
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to generate coverage file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue