Test that the project being tested was prepared, not necessarily o-z-j
When this job is ran against other repositories such as project-config or zuul-jobs, the project being prepared won't be o-z-j. Change-Id: I8487680ad573b1127e5d2e73fafbd0442e003c62
This commit is contained in:
parent
8e774bd22f
commit
61239d1ef7
@ -4,7 +4,7 @@
|
|||||||
- role: use-cached-repos
|
- role: use-cached-repos
|
||||||
post_tasks:
|
post_tasks:
|
||||||
# openstack-infra/project-config is in 'required-projects'.
|
# openstack-infra/project-config is in 'required-projects'.
|
||||||
# openstack-infra/opentack-zuul-jobs is also implicitly in 'projects'.
|
# Also check that the project being tested is being prepared.
|
||||||
# We're checking them explicitly rather than with_items on zuul.projects
|
# We're checking them explicitly rather than with_items on zuul.projects
|
||||||
# in case there is a regression which would take an item out.
|
# in case there is a regression which would take an item out.
|
||||||
- name: Check that openstack-infra/project-config was prepared
|
- name: Check that openstack-infra/project-config was prepared
|
||||||
@ -12,13 +12,13 @@
|
|||||||
path: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/project-config"
|
path: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/project-config"
|
||||||
register: project_config
|
register: project_config
|
||||||
|
|
||||||
- name: Check that openstack-infra/openstack-zuul-jobs was prepared
|
- name: Check this project was prepared
|
||||||
stat:
|
stat:
|
||||||
path: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/openstack-zuul-jobs"
|
path: "{{ ansible_user_dir }}/src/{{ zuul.project.canonical_name }}"
|
||||||
register: ozj_config
|
register: self_config
|
||||||
|
|
||||||
- name: Validate that required projects have been prepared
|
- name: Validate that required projects have been prepared
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- project_config.stat.exists
|
- project_config.stat.exists
|
||||||
- ozj_config.stat.exists
|
- self_config.stat.exists
|
||||||
|
Loading…
Reference in New Issue
Block a user