mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
Fix integration test script coverage reporting.
Code coverage reporting was ignoring scripts executed during integration tests when those scripts resided in the temporary working directory used during an integration test run.
This commit is contained in:
@@ -122,6 +122,11 @@ def command_coverage_combine(args):
|
||||
new_name = re.sub('^(/.*?)?/root/ansible/', root_path, filename)
|
||||
display.info('%s -> %s' % (filename, new_name), verbosity=3)
|
||||
filename = new_name
|
||||
elif '/.ansible/test/tmp/' in filename:
|
||||
# Rewrite the path of code running from an integration test temporary directory.
|
||||
new_name = re.sub(r'^.*/\.ansible/test/tmp/[^/]+/', root_path, filename)
|
||||
display.info('%s -> %s' % (filename, new_name), verbosity=3)
|
||||
filename = new_name
|
||||
|
||||
if group not in groups:
|
||||
groups[group] = {}
|
||||
|
||||
Reference in New Issue
Block a user