From 0ea4e23fffbf277ba4c3a53d119f5227cf008218 Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Tue, 14 Nov 2017 13:56:28 +0100 Subject: [PATCH] Include a tests file to run specific tests Change-Id: I3702d2653a51a3489c717e94642f16de66d08302 --- tests/templates/playbook.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/templates/playbook.j2 b/tests/templates/playbook.j2 index 43c72a7..1e7afc3 100644 --- a/tests/templates/playbook.j2 +++ b/tests/templates/playbook.j2 @@ -16,3 +16,10 @@ {% endfor %} - role: {{project_name}} playbook_debug: false + + tasks: + - include: "{% raw %}{{ item }}{% endraw %}" + with_first_found: + - files: + - '{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/tests/tests.yml' + skip: true