Move tempest overrides to var at task level

* In run-v3.yaml, we have started adding tempest overrides in a list
  and it started growing which is hard to handle so we can move to
  a var with list and re-use that and it also improves the
  readability.

Change-Id: Icde2989122889be426309c36a912163f69398190
This commit is contained in:
Chandan Kumar 2018-10-26 16:53:35 +05:30
parent a574b2d627
commit f7a06b637c
1 changed files with 9 additions and 1 deletions

View File

@ -52,9 +52,17 @@
tasks:
- block:
- name: Check overridable settings
vars:
tempest_overrides:
- 'run_tempest'
- 'tempest_whitelist'
- 'test_black_regex'
- 'tempest_format'
- 'tempest_extra_config'
- 'tempest_plugins'
fail:
msg: "ERROR: {{ item }} is not overridable."
when: item not in ['run_tempest', 'tempest_whitelist', 'test_black_regex', 'tempest_format', 'tempest_extra_config', 'tempest_plugins']
when: item not in "{{ tempest_overrides }}"
with_items: "{{ featureset_override }}"
- name: Generate featureset overriding file
template: