mirror of
https://github.com/zebrajr/ansible.git
synced 2026-01-15 12:15:19 +00:00
[stable-2.9] ansible-test - ensure trailing separator is added for connection unit test target (#74176) (#74182)
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user