Skip to content

Commit

Permalink
test: skip fingerprint if fstab is not written
Browse files Browse the repository at this point in the history
Some tests do not cause the role to touch /etc/fstab, so skip the
fingerprint check.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Dec 11, 2024
1 parent 2c3b47e commit acabc5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test-verify-volume-fstab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
that: __fingerprint in storage_test_fstab.stdout
vars:
__fingerprint: "system_role:storage"
when: not storage_test_skip_fingerprint | d(false)

- name: Clean up variables
set_fact:
Expand Down
1 change: 1 addition & 0 deletions tests/tests_remove_nonexistent_pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
storage_safe_mode: false
storage_use_partitions: true
mount_location1: '/opt/test1'
storage_test_skip_fingerprint: true
tags:
- tests::lvm

Expand Down

0 comments on commit acabc5a

Please sign in to comment.