From d9080904a39bb7d862d36a3afb8dedb452e0032e Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Jul 30 2020 09:43:48 +0000 Subject: check-for-tests playbook: control the rpm-install-test job --- diff --git a/playbooks/rpm/check-for-tests.yaml b/playbooks/rpm/check-for-tests.yaml index 0fb3772..8ae38cd 100644 --- a/playbooks/rpm/check-for-tests.yaml +++ b/playbooks/rpm/check-for-tests.yaml @@ -1,7 +1,7 @@ --- - hosts: localhost tasks: - - name: Check fo tests/tests.yml exists + - name: Check for tests/tests.yml exists stat: path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/tests.yml" register: tests_stat @@ -14,5 +14,6 @@ - zuul_return: data: zuul: - child_jobs: [] + child_jobs: + - rpm-install-test when: not tests_stat.stat.exists