Bug 1454629 - Ignore both gcc and Visual Studio headers in coverage reports. r=jmaher
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Thu, 19 Apr 2018 00:09:56 +0200
changeset 414532 c30785b6f3f7b043377846f7e4d0dc0fd0a16451
parent 414531 7d99a84cebf31beddb344dffbcfd5c2869130906
child 414533 0ab0d909476f55bd58181485889f0a31d032b308
push id33871
push usercsabou@mozilla.com
push dateThu, 19 Apr 2018 22:30:08 +0000
treeherdermozilla-central@5d73549d363f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1454629
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1454629 - Ignore both gcc and Visual Studio headers in coverage reports. r=jmaher
testing/mozharness/mozharness/mozilla/testing/codecoverage.py
--- a/testing/mozharness/mozharness/mozilla/testing/codecoverage.py
+++ b/testing/mozharness/mozharness/mozilla/testing/codecoverage.py
@@ -186,17 +186,18 @@ class CodeCoverageMixin(object):
             # Download the gcno from the build machine.
             self.download_file(self.url_to_gcno, parent_dir=self.grcov_dir)
 
             # Run grcov on the zipped .gcno and .gcda files.
             grcov_command = [
                 os.path.join(self.grcov_dir, 'grcov'),
                 '-t', 'lcov',
                 '-p', self.prefix,
-                '--ignore-dir', 'gcc',
+                '--ignore-dir', 'gcc*',
+                '--ignore-dir', 'vs2017_*',
                 os.path.join(self.grcov_dir, 'target.code-coverage-gcno.zip'), file_path_gcda
             ]
 
             if mozinfo.os == 'win':
                 grcov_command += ['--llvm']
 
             # 'grcov_output' will be a tuple, the first variable is the path to the lcov output,
             # the other is the path to the standard error output.