]> sourceware.org Git - lvm2.git/commitdiff
tests: Skip integrity tests if target not present dev-mcsontos-ci
authorMarian Csontos <mcsontos@redhat.com>
Wed, 14 Jun 2023 11:48:51 +0000 (13:48 +0200)
committerMarian Csontos <mcsontos@redhat.com>
Wed, 14 Jun 2023 11:48:51 +0000 (13:48 +0200)
test/shell/snapshot-raid.sh

index 757bf911e24c929c5d6d05b70276b828750ece8b..7b045d79e04f9b6e55bcb229a64f5bdb86c514b2 100644 (file)
@@ -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
 
This page took 0.0342 seconds and 5 git commands to generate.