Fix combined coverage file detection.
Resolves an issue introduced with https://github.com/ansible/ansible/pull/74719
This commit is contained in:
parent
9cfedcd9c9
commit
787f722d94
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ def command_coverage_combine(args):
|
|||
if args.delegate:
|
||||
if args.docker or args.remote:
|
||||
paths = get_all_coverage_files()
|
||||
exported_paths = [path for path in paths if path.endswith('=coverage.combined')]
|
||||
exported_paths = [path for path in paths if os.path.basename(path).split('=')[-1].split('.')[:2] == ['coverage', 'combined']]
|
||||
|
||||
if not exported_paths:
|
||||
raise ExportedCoverageDataNotFound()
|
||||
|
|
Loading…
Reference in a new issue