Skip to content

Commit

Permalink
Try ignoring the geninfo errors
Browse files Browse the repository at this point in the history
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
  • Loading branch information
darbyjohnston committed Jan 16, 2025
1 parent e58b36f commit f5e80fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
if: matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT
run: |
cd ${{ env.OTIO_BUILD_DIR }}
lcov --capture -b . --directory . --output-file=coverage.info -q
lcov --capture -b . --directory . --output-file=coverage.info -q --ignore-errors mismatch
cat coverage.info | sed "s/SF:.*src/SF:src/g" > coverage.filtered.info
lcov --remove coverage.filtered.info '*/usr/*' --output-file=coverage.filtered.info -q
lcov --remove coverage.filtered.info '*/deps/*' --output-file=coverage.filtered.info -q
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ ifndef OTIO_CXX_BUILD_TMP_DIR
not be found.)
endif
lcov --rc lcov_branch_coverage=1 --capture -b . --directory ${OTIO_CXX_BUILD_TMP_DIR} \
--output-file=${OTIO_CXX_BUILD_TMP_DIR}/coverage.info -q
--output-file=${OTIO_CXX_BUILD_TMP_DIR}/coverage.info -q \
--ignore-errors mismatch
cat ${OTIO_CXX_BUILD_TMP_DIR}/coverage.info | sed "s/SF:.*src/SF:src/g"\
> ${OTIO_CXX_BUILD_TMP_DIR}/coverage.filtered.info
lcov --rc lcov_branch_coverage=1 --remove ${OTIO_CXX_BUILD_TMP_DIR}/coverage.filtered.info '/usr/*' \
Expand Down
2 changes: 1 addition & 1 deletion src/opentimelineio/typeRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class TypeRegistry
CLASS::Schema::name,
CLASS::Schema::version,
&typeid(CLASS),
[]() -> SerializableObject* { return new CLASS; }, // LCOV_EXCL_EXCEPTION_BR_LINE
[]() -> SerializableObject* { return new CLASS; },
CLASS::Schema::name);
}

Expand Down

0 comments on commit f5e80fe

Please sign in to comment.