public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test/lib check.sh Date: Fri, 07 Jan 2011 13:03:00 -0000 [thread overview] Message-ID: <20110107130347.23378.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@sourceware.org 2011-01-07 13:03:47 Modified files: test/lib : check.sh Log message: Relax the mirror test in test/lib/check.sh. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/lib/check.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2 --- LVM2/test/lib/check.sh 2011/01/05 00:16:21 1.1 +++ LVM2/test/lib/check.sh 2011/01/07 13:03:46 1.2 @@ -140,9 +140,15 @@ mirror_nonredundant() { lv="$1/$2" lvs -oattr "$lv" | grep -q "^ *m.....$" || { - echo "$lv expected a mirror, but is not:" - lvs -a $lv - exit 1 + if lvs -oattr "$lv" | grep -q "^ *o.....$" && + lvs -a | fgrep -q "[${lv}_mimage"; then + echo "TEST WARNING: $lv is a snapshot origin and looks like a mirror," + echo "assuming it is actually a mirror" + else + echo "$lv expected a mirror, but is not:" + lvs -a $lv + exit 1 + fi } if test -n "$3"; then mirror_log_on "$1" "$2" "$3"; fi }
next reply other threads:[~2011-01-07 13:03 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-07 13:03 mornfall [this message] 2011-01-07 14:42 mornfall 2011-01-28 16:08 zkabelac 2011-09-09 13:19 zkabelac
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=20110107130347.23378.qmail@sourceware.org \ --to=mornfall@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).