From 6842c0467fc8697a3587ae88e8982e7d55d985d4 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 15 Jan 2019 23:17:25 -0800 Subject: [PATCH] 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. --- test/runner/lib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner/lib/target.py b/test/runner/lib/target.py index a7e35fdd6ff..0fac98cb04b 100644 --- a/test/runner/lib/target.py +++ b/test/runner/lib/target.py @@ -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