[stable-2.11] ansible-test - ensure trailing separator is added for connection unit test target (#74176) (#74180)

For connection units tests, if the `__init__.py` file is modified, the trailing separator was
not added, making the target invalid.
(cherry picked from commit 7b79b69369)

Co-authored-by: Sam Doran <sdoran@redhat.com>
pull/74260/head
Sam Doran 4 years ago committed by GitHub
parent 01a0e728c7
commit 62b68bf83e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,4 @@
bugfixes:
- >-
ansible-test - ensure the correct unit test target is given when the
``__init__.py`` file is modified inside the connection plugins directory

@ -527,7 +527,7 @@ class PathMapper:
'integration': self.integration_all_target,
'windows-integration': self.integration_all_target,
'network-integration': self.integration_all_target,
'units': units_dir,
'units': os.path.join(units_dir, ''),
}
units_path = os.path.join(units_dir, 'test_%s.py' % name)

Loading…
Cancel
Save