Fix ansible-test handling of no Python coverage.

pull/68182/head
Matt Clay 6 years ago
parent b54189c45b
commit 8fffbecc81

@ -0,0 +1,2 @@
bugfixes:
- ansible-test no longer errors reporting coverage when no Python coverage exists. This fixes issues reporting on PowerShell only coverage from collections.

@ -110,7 +110,10 @@ def _command_coverage_combine_python(args):
if not args.explain:
output_file = coverage_file + group
updated.write_file(output_file)
updated.write_file(output_file) # always write files to make sure stale files do not exist
if updated:
# only report files which are non-empty to prevent coverage from reporting errors
output_files.append(output_file)
path_checker.report()

Loading…
Cancel
Save