openqa/server: load the update test templates

Forgot these were in a separate file...
This commit is contained in:
Adam Williamson 2017-02-28 09:41:32 -08:00
parent 5ebc776918
commit 5f15217f0a

View file

@ -255,11 +255,16 @@
# a correct 'changed' for this step is too difficult. Instead we have
# the prior and following steps; when the templates actually changed,
# the *following* step will register as changed.
- name: Load tests
- name: Load main tests
command: "/var/lib/openqa/share/tests/fedora/templates --clean"
when: "(gittests is defined) and (gittests|changed)"
changed_when: "1 != 1"
- name: Load update tests
command: "/var/lib/openqa/share/tests/fedora/templates-updates --update"
when: "(gittests is defined) and (gittests|changed)"
changed_when: "1 != 1"
- name: Check if the tests changed in previous step
shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-new.json && json_diff /tmp/tmpl-old.json /tmp/tmpl-new.json"
when: "(gittests is defined) and (gittests|changed)"