Fix ansible-test coverage --all (#62115)

This commit is contained in:
Jordan Borean 2019-09-11 15:12:38 +10:00 committed by GitHub
parent 53aa258d78
commit 6fb1d56fdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ansible-test coverage - Fix the ``--all`` argument when generating coverage reports - https://github.com/ansible/ansible/issues/62096

View file

@ -175,7 +175,7 @@ def _command_coverage_combine_python(args):
updated.add_arcs({filename: list(arc_data[filename])}) updated.add_arcs({filename: list(arc_data[filename])})
if args.all: if args.all:
updated.add_arcs(dict((source, []) for source in sources)) updated.add_arcs(dict((source[0], []) for source in sources))
if not args.explain: if not args.explain:
output_file = coverage_file + group output_file = coverage_file + group