main - tests: Skip integrity tests if target not present

Marian Csontos <[email protected]>
Newsgroups gmane.linux.lvm.devel
Message-ID <[email protected]>
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f0b48a23d9d8b5d858be1772ea5c9083d235b3b3
Commit:        f0b48a23d9d8b5d858be1772ea5c9083d235b3b3
Parent:        4cf005d3959fdee5f78948164f22a0f0aff25173
Author:        Marian Csontos <[email protected]>
AuthorDate:    Wed Jun 14 13:48:51 2023 +0200
Committer:     Marian Csontos <[email protected]>
CommitterDate: Wed Jun 14 13:48:51 2023 +0200

tests: Skip integrity tests if target not present

---
 test/shell/snapshot-raid.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/shell/snapshot-raid.sh b/test/shell/snapshot-raid.sh
index 757bf911e..7b045d79e 100644
--- a/test/shell/snapshot-raid.sh
+++ b/test/shell/snapshot-raid.sh
@@ -348,6 +348,9 @@ test_extend_snap
 test_fill_snap
 lvremove -y $vg/$lv1
 
+# INTEGRITY TESTS FOLLOWING:
+if aux have_integrity 1 5 0; then
+
 lvcreate --type raid1 -m1 --raidintegrity y -n $lv1 -L128M $vg "$dev1" "$dev2"
 _wait_sync $vg/${lv1}_rimage_0
 _wait_sync $vg/${lv1}_rimage_1
@@ -437,5 +440,7 @@ umount "$mount_dir"
 lvremove -y $vg/snap
 lvremove -y $vg/$lv1
 
+fi # INTEGRITY TESTS SKIPPED
+
 vgremove -ff $vg
 

--
lvm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/lvm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.