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.
This commit is contained in:
Sam Doran 2021-04-07 13:27:09 -04:00 committed by GitHub
parent 459ea5a4a4
commit 7b79b69369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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)