Exclude llvm/clang lib headers from test coverage

Excludes the /usr/lib/llvm-*/include/ directory from coverage.
This directory is used on Ubuntu for the libclang-dev packages
This commit is contained in:
snsmac 2017-12-16 14:01:21 +01:00 committed by Jussi Pakkanen
parent 0bbc9df74a
commit 2b12d3b20f
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ def coverage(source_root, build_root, log_dir):
remove_dir_from_trace(lcov_exe, covinfo, '/usr/include/*')
remove_dir_from_trace(lcov_exe, covinfo, '/usr/local/include/*')
remove_dir_from_trace(lcov_exe, covinfo, '/usr/src/*')
remove_dir_from_trace(lcov_exe, covinfo, '/usr/lib/llvm-*/include/*')
subprocess.check_call([genhtml_exe,
'--prefix', build_root,
'--output-directory', htmloutdir,