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:
parent
459ea5a4a4
commit
7b79b69369
2 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue