diff options
author | Stefan Sonski <s.sonski@gmail.com> | 2017-08-10 21:28:06 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-11 00:39:59 +0300 |
commit | 462813f8f10db550a4897bfcf20aa1d675543edb (patch) | |
tree | 44e14ce25e7e09ebc7a10d99f3004d9e46cea93d | |
parent | ca4778a50078ae4f1399927111fbeae151178090 (diff) | |
download | meson-462813f8f10db550a4897bfcf20aa1d675543edb.zip meson-462813f8f10db550a4897bfcf20aa1d675543edb.tar.gz meson-462813f8f10db550a4897bfcf20aa1d675543edb.tar.bz2 |
Exclude system sources from test coverage
Exclude /usr/src/ from code coverage, this is included for e.g. gtest/gmock.
-rw-r--r-- | mesonbuild/scripts/coverage.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py index 441ec0c..d596622 100644 --- a/mesonbuild/scripts/coverage.py +++ b/mesonbuild/scripts/coverage.py @@ -58,6 +58,7 @@ def coverage(source_root, build_root, log_dir): '-o', covinfo]) 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/*') subprocess.check_call([genhtml_exe, '--prefix', build_root, '--output-directory', htmloutdir, |