Bug 1380743 - Ignore gcc/** files when generating info file via grcov. r=jmaher

This commit is contained in:
Marco Castelluccio 2017-07-13 20:11:39 +02:00
Родитель 0f9d4e1985
Коммит 57b705e719
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -130,9 +130,13 @@ class CodeCoverageMixin(object):
self.download_file(self.url_to_gcno, file_name=None, 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', \
'/home/worker/workspace/build/src/', \
os.path.join(self.grcov_dir, 'target.code-coverage-gcno.zip'), file_path_gcda]
grcov_command = [
os.path.join(self.grcov_dir, 'grcov'),
'-t', 'lcov',
'-p', '/home/worker/workspace/build/src/',
'--ignore-dir', 'gcc',
os.path.join(self.grcov_dir, 'target.code-coverage-gcno.zip'), file_path_gcda
]
# '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.