diff --git a/tests/tools/gather_coverage.sh b/tests/tools/gather_coverage.sh index f7a43a018ced..12955c7b27a6 100755 --- a/tests/tools/gather_coverage.sh +++ b/tests/tools/gather_coverage.sh @@ -32,6 +32,7 @@ SCRIPT=${0##*/} : ${COVERAGE_OUTPUT=coverage-output} : ${GCOV=gcov} +: ${GCOV_PREFIX=$(pwd)} error() { @@ -67,7 +68,7 @@ trap "rm -Rf '$COVERAGE_TMP'" EXIT INT TERM set -e -lcov --gcov-tool ${GCOV} --capture --directory ${COVERAGE_TMP} --output-file \ +lcov --gcov-tool ${GCOV} --capture --directory ${GCOV_PREFIX} --output-file \ ${COVERAGE_TMP}/coverage.info genhtml ${COVERAGE_TMP}/coverage.info --output-directory ${COVERAGE_OUTPUT}