diff options
| author | Chris Bieneman <chris.bieneman@me.com> | 2018-10-11 04:00:51 +0000 |
|---|---|---|
| committer | Chris Bieneman <chris.bieneman@me.com> | 2018-10-11 04:00:51 +0000 |
| commit | 9a10eac663dd5a2040399a87ae96be76b087c3a6 (patch) | |
| tree | 6aa8c6a97258effccfb6179ecbfb23117006c8d6 | |
| parent | 1bb9c85821fc6ab28371163b03834e71b412a8e6 (diff) | |
| download | bcm5719-llvm-9a10eac663dd5a2040399a87ae96be76b087c3a6.tar.gz bcm5719-llvm-9a10eac663dd5a2040399a87ae96be76b087c3a6.zip | |
[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
llvm-svn: 344217
| -rw-r--r-- | llvm/utils/prepare-code-coverage-artifact.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/prepare-code-coverage-artifact.py b/llvm/utils/prepare-code-coverage-artifact.py index 883cdd78049..5c4af242d0d 100644 --- a/llvm/utils/prepare-code-coverage-artifact.py +++ b/llvm/utils/prepare-code-coverage-artifact.py @@ -51,7 +51,8 @@ def prepare_html_report(host_llvm_cov, profile, report_dir, binaries, 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, |

