From: Zdeněk Kabeláč (@zdenek.kabelac) <gitlab@mg.gitlab.com>
To: lvm-devel@redhat.com
Subject: [Git][lvmteam/lvm2][main] tests: handle empty table better
Date: Fri, 13 Oct 2023 13:01:21 +0000 [thread overview]
Message-ID: <65293fa176e71_2ca5320797b8@gitlab-sidekiq-low-urgency-cpu-bound-v2-868ddd547d-4ns7m.mail> (raw)
Zden?k Kabel?? pushed to branch main at LVM team / lvm2
Commits:
0b11b08b by Zdenek Kabelac at 2023-10-13T15:00:55+02:00
tests: handle empty table better
- - - - -
1 changed file:
- test/lib/inittest.sh
Changes:
=====================================
test/lib/inittest.sh
=====================================
@@ -82,9 +82,11 @@ PREFIX="${COMMON_PREFIX}$$"
# Check we are not conflickting with some exiting setup
if test -z "$SKIP_ROOT_DM_CHECK" ; then
d=$(dmsetup info -c -o name --noheadings --rows -S "suspended=Suspended||name=~${PREFIX}[^0-9]")
- test "$d" = "No devices found" || {
- die "DM table already has either suspended or $PREFIX prefixed devices: $d"
- }
+ case "$d" in
+ "No devices found") ;;
+ "") ;;
+ *) die "DM table already has either suspended or $PREFIX prefixed devices: $d" ;;
+ esac
fi
test -n "$LVM_TEST_DIR" || LVM_TEST_DIR=${TMPDIR:-/tmp}
View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/0b11b08b6e9cd15eeaf1f591c2a3ddd2b8d2d98e
--
View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/0b11b08b6e9cd15eeaf1f591c2a3ddd2b8d2d98e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20231013/c981f8c7/attachment.htm>
reply other threads:[~2023-10-13 13:01 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=65293fa176e71_2ca5320797b8@gitlab-sidekiq-low-urgency-cpu-bound-v2-868ddd547d-4ns7m.mail \
--to=gitlab@mg.gitlab.com \
--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 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).