From acabc5a77e629d58e635574c9da69738aeb84870 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 11 Dec 2024 07:39:53 -0700 Subject: [PATCH] test: skip fingerprint if fstab is not written Some tests do not cause the role to touch /etc/fstab, so skip the fingerprint check. Signed-off-by: Rich Megginson --- tests/test-verify-volume-fstab.yml | 1 + tests/tests_remove_nonexistent_pool.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test-verify-volume-fstab.yml b/tests/test-verify-volume-fstab.yml index 5c6a12f4..e5517995 100644 --- a/tests/test-verify-volume-fstab.yml +++ b/tests/test-verify-volume-fstab.yml @@ -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: diff --git a/tests/tests_remove_nonexistent_pool.yml b/tests/tests_remove_nonexistent_pool.yml index aecb3f44..2f9965a1 100644 --- a/tests/tests_remove_nonexistent_pool.yml +++ b/tests/tests_remove_nonexistent_pool.yml @@ -6,6 +6,7 @@ storage_safe_mode: false storage_use_partitions: true mount_location1: '/opt/test1' + storage_test_skip_fingerprint: true tags: - tests::lvm