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 <tom.hromatka@oracle.com>
"$(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" \
"$(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