Skip to content

Commit

Permalink
tests: Skip Stratis tests on RHEL/CentOS 8
Browse files Browse the repository at this point in the history
Blivet doesn't support Stratis v2 which is available on RHEL 8.
  • Loading branch information
vojtechtrefny authored and richm committed Aug 29, 2024
1 parent 600cb9c commit 25ab178
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/tests_stratis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,18 @@

- name: Set distribution version
set_fact:
is_rhel7: "{{ (ansible_facts['os_family'] == 'RedHat') and
ansible_facts.distribution_major_version == '7' }}"
is_rhel78: "{{ (ansible_facts['os_family'] == 'RedHat') and
(ansible_facts.distribution_major_version == '7' or
ansible_facts.distribution_major_version == '8') }}"
is_rhel9: "{{ (ansible_facts['os_family'] == 'RedHat') and
ansible_facts.distribution_major_version == '9' }}"
is_rhel10: "{{ (ansible_facts['os_family'] == 'RedHat') and
ansible_facts.distribution_major_version == '10' }}"
is_fedora: "{{ ansible_facts.distribution == 'Fedora' }}"


- name: Completely skip this on RHEL/CentOS 7 where Stratis isn't supported
when: not is_rhel7
- name: Completely skip this on RHEL/CentOS 7 and 8 where Stratis isn't supported by blivet
when: not is_rhel78
block:
- name: Get unused disks
include_tasks: get_unused_disk.yml
Expand Down

0 comments on commit 25ab178

Please sign in to comment.