Skip to content

Commit

Permalink
ignore inconsistent error when generating coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Jan 17, 2025
1 parent aaca64c commit b79ea50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/generate-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ rm -f "$OUTPUT_FILE" # Ensure the output file doesn't already exist

for INFO_FILE in "$TEMP_COVERAGE_DIR"/*.info; do
if [ -f "$INFO_FILE" ]; then
lcov --add-tracefile "$INFO_FILE" --output-file "$OUTPUT_FILE"
lcov \
--ignore-errors inconsistent \
--add-tracefile "$INFO_FILE" \
--output-file "$OUTPUT_FILE"
if [ $? -ne 0 ]; then
echo "Failed to merge $INFO_FILE into $OUTPUT_FILE. Exiting."
exit 1
Expand Down

0 comments on commit b79ea50

Please sign in to comment.