All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marian Csontos <mcsontos@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - tests: Skip integrity tests if target not present
Date: Wed, 14 Jun 2023 11:50:00 +0000 (GMT)	[thread overview]
Message-ID: <20230614115000.4354C3858D1E@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f0b48a23d9d8b5d858be1772ea5c9083d235b3b3
Commit:        f0b48a23d9d8b5d858be1772ea5c9083d235b3b3
Parent:        4cf005d3959fdee5f78948164f22a0f0aff25173
Author:        Marian Csontos <mcsontos@redhat.com>
AuthorDate:    Wed Jun 14 13:48:51 2023 +0200
Committer:     Marian Csontos <mcsontos@redhat.com>
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
 


                 reply	other threads:[~2023-06-14 11:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230614115000.4354C3858D1E@sourceware.org \
    --to=mcsontos@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.