1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: query info instead of table

No need to access table when we just check presence,
so generate smaller error message about missing device.
This commit is contained in:
Zdenek Kabelac 2021-03-24 00:37:24 +01:00
parent 8df0a32abb
commit 18f2475fa1

View File

@ -93,7 +93,7 @@ not grep "Not using device" out
not vgchange -ay $vg
# should not show an active lv
not dmsetup table $vg-$lv1
not dmsetup info $vg-$lv1
# should not allow updating vg
not lvcreate -l1 $vg
@ -107,7 +107,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
# should not show an active lv
not dmsetup table $vg-$lv1
not dmsetup info $vg-$lv1
mdadm --assemble "$mddev" "$dev1" "$dev2"
aux udev_wait
@ -130,7 +130,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
# should not show an active lv
not dmsetup table $vg-$lv1
not dmsetup info $vg-$lv1
vgchange -ay $vg
@ -247,7 +247,7 @@ grep "$dev3" out
not vgchange -ay $vg
# should not show an active lv
not dmsetup table $vg-$lv1
not dmsetup info $vg-$lv1
# should not allow updating vg
not lvcreate -l1 $vg
@ -261,7 +261,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
# should not show an active lv
not dmsetup table $vg-$lv1
not dmsetup info $vg-$lv1
# start the md dev
mdadm --assemble "$mddev" "$dev1" "$dev2"
@ -285,7 +285,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
# should not show an active lv
not dmsetup table $vg-$lv1
not dmsetup info $vg-$lv1
vgchange -ay $vg