* [Git][lvmteam/lvm2][main] tests: handle empty table better
@ 2023-10-13 13:01 Zdeněk Kabeláč
0 siblings, 0 replies; only message in thread
From: Zdeněk Kabeláč @ 2023-10-13 13:01 UTC (permalink / raw)
To: lvm-devel
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-13 13:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 13:01 [Git][lvmteam/lvm2][main] tests: handle empty table better Zdeněk Kabeláč
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 NNTP newsgroup(s).