From: Tom Hromatka Date: Mon, 13 Jan 2025 17:31:41 +0000 (-0700) Subject: github: Ignore unused data errors in lcov X-Git-Tag: v3.2.0~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8bd97fb6e170990d484f37a8d79e82098509e5c;p=thirdparty%2Flibcgroup.git github: Ignore unused data errors in lcov The "Unit Tests" job was throwing the following lcov error: Summary coverage rate: lines......: 20.5% (1073 of 5227 lines) functions..: 29.0% (73 of 252 functions) branches...: no data found (use "lcov --ignore-errors unused ..." to bypass this error) Add "--ignore errors unused" to the lcov command to work around this. Signed-off-by: Tom Hromatka --- diff --git a/.github/actions/code-coverage/action.yml b/.github/actions/code-coverage/action.yml index 3d205afa..3b282f49 100644 --- a/.github/actions/code-coverage/action.yml +++ b/.github/actions/code-coverage/action.yml @@ -19,7 +19,8 @@ runs: "$(pwd)/src/python/libcgroup.c" \ "$(pwd)/src/parse.c" \ "$(pwd)/src/lex.c" \ - -o lcov.tests + -o lcov.tests \ + --ignore-errors unused shell: bash - run: | lcov -r lcov.base "/usr/include/python3.8/objimpl.h" \ @@ -27,7 +28,8 @@ runs: "$(pwd)/src/python/libcgroup.c" \ "$(pwd)/src/parse.c" \ "$(pwd)/src/lex.c" \ - -o lcov.base + -o lcov.base \ + --ignore-errors unused shell: bash - run: lcov -a lcov.base -a lcov.tests -o lcov.total shell: bash