ansible-test - ensure trailing separator is added for connection unit test target (#74176)

For connection units tests, if the `__init__.py` file is modified, the trailing separator was
not added, making the target invalid.
pull/74094/head
Sam Doran 4 years ago committed by GitHub
parent 459ea5a4a4
commit 7b79b69369
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, 'integration': self.integration_all_target,
'windows-integration': self.integration_all_target, 'windows-integration': self.integration_all_target,
'network-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) units_path = os.path.join(units_dir, 'test_%s.py' % name)

Loading…
Cancel
Save