mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-01 06:41:26 -07:00
Add support for setup targets to ansible-test. (#28544)
* Add support for setup targets to ansible-test. * Code cleanup.
This commit is contained in:
parent
282e743eb0
commit
5ea8a5e34b
6 changed files with 99 additions and 37 deletions
|
@ -92,11 +92,11 @@ def command_coverage_combine(args):
|
|||
display.info('%s -> %s' % (filename, new_name), verbosity=3)
|
||||
filename = new_name
|
||||
elif '/ansible_module_' in filename:
|
||||
module = re.sub('^.*/ansible_module_(?P<module>.*).py$', '\\g<module>', filename)
|
||||
if module not in modules:
|
||||
display.warning('Skipping coverage of unknown module: %s' % module)
|
||||
module_name = re.sub('^.*/ansible_module_(?P<module>.*).py$', '\\g<module>', filename)
|
||||
if module_name not in modules:
|
||||
display.warning('Skipping coverage of unknown module: %s' % module_name)
|
||||
continue
|
||||
new_name = os.path.abspath(modules[module])
|
||||
new_name = os.path.abspath(modules[module_name])
|
||||
display.info('%s -> %s' % (filename, new_name), verbosity=3)
|
||||
filename = new_name
|
||||
elif re.search('^(/.*?)?/root/ansible/', filename):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue