diff --git a/Tools/scripts/run-coverage b/Tools/scripts/run-coverage index 488194f583..2f43bb095f 100755 --- a/Tools/scripts/run-coverage +++ b/Tools/scripts/run-coverage @@ -49,7 +49,10 @@ LCOV_LOG="GCOV_lcov.log" GENHTML_LOG="GCOV_genhtml.log" lcov --no-external --capture --directory $PWD -o "$INFO_FILE" 2>&1 | tee $LCOV_LOG +# remove files we do not intentionally test: lcov --remove "$INFO_FILE" ".waf*" -o "$INFO_FILE" 2>&1 | tee -a $LCOV_LOG +lcov --remove "$INFO_FILE" "$PWD/modules/gtest/*" -o "$INFO_FILE" 2>&1 | tee -a $LCOV_LOG +lcov --remove "$INFO_FILE" "$PWD/build/linux/libraries/*" -o "$INFO_FILE" 2>&1 | tee -a $LCOV_LOG genhtml "$INFO_FILE" -o "$REPORT_DIR" 2>&1 | tee $GENHTML_LOG