mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 21:01:13 +00:00
Fix ansible-test handling of empty test targets.
Previously empty test targets were ignored by ansible-test. This would prevent them from participating in dependency analysis. These targets are actually empty roles, and should be processed as such.
This commit is contained in:
@@ -566,7 +566,7 @@ class IntegrationTarget(CompletionTarget):
|
||||
elif os.path.isdir(os.path.join(path, 'tasks')) or os.path.isdir(os.path.join(path, 'defaults')):
|
||||
self.type = 'role'
|
||||
else:
|
||||
self.type = 'unknown'
|
||||
self.type = 'role' # ansible will consider these empty roles, so ansible-test should as well
|
||||
|
||||
# static_aliases
|
||||
|
||||
|
||||
Reference in New Issue
Block a user