Skip to content

Commit

Permalink
test: skip lvm pool shared test if not supported
Browse files Browse the repository at this point in the history
Our CI and local test frameworks do not currently support the
shared lvm pool test.  Skip it by default.
If you want to run the test, set the environment variable
`SYSTEM_ROLES_STORAGE_SHARED_TEST=true` in your
`ansible-playbook` invocation environment e.g.
`SYSTEM_ROLES_STORAGE_SHARED_TEST=true ansible-playbook ... tests_lvm_pool_shared.yml`

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Feb 13, 2024
1 parent 533145b commit 8b3a71a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tests_lvm_pool_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
lvm_conf: /etc/lvm/lvm.conf

tasks:
- name: Skip this test if test system does not support
meta: end_host
when: lookup("env", "SYSTEM_ROLES_STORAGE_SHARED_TEST") != "true"

- name: Run the test
block:
- name: See if lvm.conf exists
Expand Down

0 comments on commit 8b3a71a

Please sign in to comment.