From 9a9d5020c718b53a486e568438782c99376eee5a Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Mar 17 2020 13:09:26 +0000 Subject: check-for-tests.yaml: fix playbook path --- diff --git a/playbooks/check-for-tests.yaml b/playbooks/check-for-tests.yaml deleted file mode 100644 index a1f3478..0000000 --- a/playbooks/check-for-tests.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- hosts: all - tasks: - - name: Check fo tests/tests.yml exists - stat: - path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/tests.yml" - register: tests_stat - - zuul_return: - data: - zuul: - child_jobs: - - rpm-test - when: tests_stat.stat.exists - - zuul_return: - data: - zuul: - child_jobs: [] - when: not tests_stat.stat.exists diff --git a/playbooks/rpm/check-for-tests.yaml b/playbooks/rpm/check-for-tests.yaml new file mode 100644 index 0000000..0fb3772 --- /dev/null +++ b/playbooks/rpm/check-for-tests.yaml @@ -0,0 +1,18 @@ +--- +- hosts: localhost + tasks: + - name: Check fo tests/tests.yml exists + stat: + path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/tests.yml" + register: tests_stat + - zuul_return: + data: + zuul: + child_jobs: + - rpm-test + when: tests_stat.stat.exists + - zuul_return: + data: + zuul: + child_jobs: [] + when: not tests_stat.stat.exists