Fix tempest_allow logic

Since we weren't using the tempest-allow role before, the logic was set
to be executed when tempest_test_whitelist wasn't defined, which is
fine, but to run skipped jobs, the allowed list was being overwriten.
This patch add the logic to only run the tempest-allow role when
tempest_run_skipped is set to false (default).

Change-Id: Ie4a5b6a764d19ce49f703804daaa50425be1bb6f
This commit is contained in:
Arx Cruz 2022-07-11 17:47:27 +02:00 committed by dasm
parent 7482df1efe
commit 9f54c3129e
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@
vars:
ansible_python_interpreter: "{{ local_working_dir }}/bin/python"
list_allowed_yaml_file: "{{ local_working_dir }}/usr/local/share/ansible/roles/validate-tempest/vars/tempest_allow.yml"
when: tempest_test_whitelist is not defined
when:
- tempest_test_whitelist is not defined
- not tempest_run_skipped | default(false) | bool
delegate_to: localhost
- name: set python_cmd