mirror of
https://github.com/apache/nuttx.git
synced 2026-03-24 23:54:24 +08: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user