Exclude system headers from coverage reports 32/158532/2
authorDmitriy Nikiforov <d.nikiforov@samsung.com>
Wed, 1 Nov 2017 13:25:30 +0000 (16:25 +0300)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 1 Nov 2017 16:42:42 +0000 (16:42 +0000)
Change-Id: I3d103fc78080188fd077278279e3b6010caad249

infra/commands/report.sh

index 5973883..928ec3a 100755 (executable)
@@ -147,7 +147,7 @@ if (( COVERAGE == 1 )); then
 
         # generate and pull coverage report
         tmpdir=$(sdb_shell_verbose mktemp -d "/tmp/XXXX")
-        sdb_shell cd "${tmpdir}" '&&' coverage-report-dump.py --srcpath / --dump ./ --symcov "${symcov}"
+        sdb_shell cd "${tmpdir}" '&&' coverage-report-dump.py --srcpath / --dump ./ --symcov "${symcov}" --exclude-headers /usr/lib --exclude-headers /usr/include
         ${SDB_CMD} pull "${tmpdir}/coverage.zip" "${DEST_DIR}" >/dev/null
 
         # delete target sources from device