[llvm] r344217 - [Coverage] Apply filtered paths to summary
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 10 21:00:51 PDT 2018
Author: cbieneman
Date: Wed Oct 10 21:00:51 2018
New Revision: 344217
URL: http://llvm.org/viewvc/llvm-project?rev=344217&view=rev
Log:
[Coverage] Apply filtered paths to summary
Summary:
The script to generate code coverage reports supports passing filter paths to llvm-cov when generating the HTML reports, but doesn't pass those paths to the summary generation as well. This results in a summary report that doesn't match the HTML report.
This patch addresses the problem by also passing the filter paths to the summary report generation.
Reviewers: vsk
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D53110
Modified:
llvm/trunk/utils/prepare-code-coverage-artifact.py
Modified: llvm/trunk/utils/prepare-code-coverage-artifact.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/prepare-code-coverage-artifact.py?rev=344217&r1=344216&r2=344217&view=diff
==============================================================================
--- llvm/trunk/utils/prepare-code-coverage-artifact.py (original)
+++ llvm/trunk/utils/prepare-code-coverage-artifact.py Wed Oct 10 21:00:51 2018
@@ -51,7 +51,8 @@ def prepare_html_report(host_llvm_cov, p
subprocess.check_call(invocation)
with open(os.path.join(report_dir, 'summary.txt'), 'wb') as Summary:
subprocess.check_call([host_llvm_cov, 'report'] + objects +
- ['-instr-profile', profile], stdout=Summary)
+ ['-instr-profile', profile] + restricted_dirs,
+ stdout=Summary)
print('Done!')
def prepare_html_reports(host_llvm_cov, profdata_path, report_dir, binaries,
More information about the llvm-commits
mailing list