diff options
author | Matt Clay <matt@mystile.com> | 2020-03-03 10:28:48 -0800 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2020-03-03 14:07:29 -0800 |
commit | 1a8fdaadc797e56b74822cee18f1454f76bbe1d8 (patch) | |
tree | 2b1f450912fd5499e3fee1235d3c8e644e6b432c /test/lib/ansible_test/_internal/coverage/combine.py | |
parent | d61332b50e32d529127c37219f6eb509ea6b83b2 (diff) | |
download | ansible-1a8fdaadc797e56b74822cee18f1454f76bbe1d8.tar.gz |
Fix powershell coverage path rewriting.
This applies the same rewrite logic to PowerShell coverage as is used for Python coverage.
Diffstat (limited to 'test/lib/ansible_test/_internal/coverage/combine.py')
-rw-r--r-- | test/lib/ansible_test/_internal/coverage/combine.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/coverage/combine.py b/test/lib/ansible_test/_internal/coverage/combine.py index e4a6f61415..bb2474b1a0 100644 --- a/test/lib/ansible_test/_internal/coverage/combine.py +++ b/test/lib/ansible_test/_internal/coverage/combine.py @@ -135,6 +135,8 @@ def _command_coverage_combine_powershell(args): sources = _get_coverage_targets(args, walk_powershell_targets) groups = _build_stub_groups(args, sources, _default_stub_value) + collection_search_re, collection_sub_re = get_collection_path_regexes() + for coverage_file in coverage_files: counter += 1 display.info('[%4d/%4d] %s' % (counter, len(coverage_files), coverage_file), verbosity=2) @@ -145,7 +147,7 @@ def _command_coverage_combine_powershell(args): display.warning('Unexpected name for coverage file: %s' % coverage_file) continue - for filename, hits in enumerate_powershell_lines(coverage_file): + for filename, hits in enumerate_powershell_lines(coverage_file, collection_search_re, collection_sub_re): if group not in groups: groups[group] = {} |