From 787f722d9483bb2c8699d269250a9324cff265d2 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 17 May 2021 15:57:27 -0700 Subject: [PATCH] Fix combined coverage file detection. Resolves an issue introduced with https://github.com/ansible/ansible/pull/74719 --- test/lib/ansible_test/_internal/commands/coverage/combine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/ansible_test/_internal/commands/coverage/combine.py b/test/lib/ansible_test/_internal/commands/coverage/combine.py index 0dd6f0fa873..f4d664608bf 100644 --- a/test/lib/ansible_test/_internal/commands/coverage/combine.py +++ b/test/lib/ansible_test/_internal/commands/coverage/combine.py @@ -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()