diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 69361b7ef..05bc6b8bc 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 --ignore-errors mismatch + lcov --capture -b . --directory . --output-file=coverage.info -q --ignore-errors gcov 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 diff --git a/Makefile b/Makefile index 6bbe0f0d0..9ae9d64d2 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,7 @@ ifndef OTIO_CXX_BUILD_TMP_DIR 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 \ - --ignore-errors mismatch + --ignore-errors gcov 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/*' \