File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ set -euo pipefail
55EXCLUSIONS=(" $@ " )
66
77# Install lcov if required
8- LCOV_VERSION=" 1.13 "
8+ LCOV_VERSION=" 1.15 "
99if [[ ! " $( lcov --version 2> /dev/null || true) " =~ " version ${LCOV_VERSION} " ]]; then
1010 LCOV_ROOT=" /tmp/lcov"
11- LCOV_URL=" http ://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_ ${LCOV_VERSION} .orig .tar.gz"
11+ LCOV_URL=" https ://github.com/linux-test-project/lcov/releases/download/v ${LCOV_VERSION} /lcov- ${LCOV_VERSION} .tar.gz"
1212 mkdir " ${LCOV_ROOT} "
1313 wget --quiet -O - " ${LCOV_URL} " | tar --strip-components=1 -xz -C " ${LCOV_ROOT} "
1414 export PATH=" ${LCOV_ROOT} /bin:${PATH} "
@@ -21,7 +21,7 @@ lcov --version || true
2121# capture coverage info
2222lcov --gcov-tool " ${GCOV} " --directory build --capture --output-file coverage.info --rc lcov_branch_coverage=1 > /dev/null
2323# Remove everything from /usr (unrelated), external folder (3rd party data), test code
24- lcov --remove coverage.info ' /usr/*' " ${HOME} / " ' .cache/*' --output-file coverage.info > /dev/null
24+ lcov --remove coverage.info ' /usr/*' ' */ .cache/*' --output-file coverage.info > /dev/null
2525for excl in " ${EXCLUSIONS[@]} " ; do
2626 lcov --remove coverage.info " ${excl} " --output-file coverage.info > /dev/null
2727done
You can’t perform that action at this time.
0 commit comments