mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +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:
parent
8df0a32abb
commit
18f2475fa1
@ -93,7 +93,7 @@ not grep "Not using device" out
|
|||||||
not vgchange -ay $vg
|
not vgchange -ay $vg
|
||||||
|
|
||||||
# should not show an active lv
|
# should not show an active lv
|
||||||
not dmsetup table $vg-$lv1
|
not dmsetup info $vg-$lv1
|
||||||
|
|
||||||
# should not allow updating vg
|
# should not allow updating vg
|
||||||
not lvcreate -l1 $vg
|
not lvcreate -l1 $vg
|
||||||
@ -107,7 +107,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
|
|||||||
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
||||||
|
|
||||||
# should not show an active lv
|
# should not show an active lv
|
||||||
not dmsetup table $vg-$lv1
|
not dmsetup info $vg-$lv1
|
||||||
|
|
||||||
mdadm --assemble "$mddev" "$dev1" "$dev2"
|
mdadm --assemble "$mddev" "$dev1" "$dev2"
|
||||||
aux udev_wait
|
aux udev_wait
|
||||||
@ -130,7 +130,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
|
|||||||
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
||||||
|
|
||||||
# should not show an active lv
|
# should not show an active lv
|
||||||
not dmsetup table $vg-$lv1
|
not dmsetup info $vg-$lv1
|
||||||
|
|
||||||
vgchange -ay $vg
|
vgchange -ay $vg
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ grep "$dev3" out
|
|||||||
not vgchange -ay $vg
|
not vgchange -ay $vg
|
||||||
|
|
||||||
# should not show an active lv
|
# should not show an active lv
|
||||||
not dmsetup table $vg-$lv1
|
not dmsetup info $vg-$lv1
|
||||||
|
|
||||||
# should not allow updating vg
|
# should not allow updating vg
|
||||||
not lvcreate -l1 $vg
|
not lvcreate -l1 $vg
|
||||||
@ -261,7 +261,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
|
|||||||
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
||||||
|
|
||||||
# should not show an active lv
|
# should not show an active lv
|
||||||
not dmsetup table $vg-$lv1
|
not dmsetup info $vg-$lv1
|
||||||
|
|
||||||
# start the md dev
|
# start the md dev
|
||||||
mdadm --assemble "$mddev" "$dev1" "$dev2"
|
mdadm --assemble "$mddev" "$dev1" "$dev2"
|
||||||
@ -285,7 +285,7 @@ test ! -f "$RUNDIR/lvm/pvs_online/$PVIDMD"
|
|||||||
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
test ! -f "$RUNDIR/lvm/vgs_online/$vg"
|
||||||
|
|
||||||
# should not show an active lv
|
# should not show an active lv
|
||||||
not dmsetup table $vg-$lv1
|
not dmsetup info $vg-$lv1
|
||||||
|
|
||||||
vgchange -ay $vg
|
vgchange -ay $vg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user