mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-24 17:57:48 +03:00
Test with -F flag
grep need -F to check what we really want to test. Add better test for existing device. Currently this test DOES NOT work with real /dev handle via udev since our tool does not see such device listet through udev. FIXME: We might be able to see it at least through dmsetup table and use for lvm.
This commit is contained in:
parent
f2c56bc3b6
commit
faf7c493f8
@ -23,11 +23,14 @@ name=$(basename "$dev1")
|
||||
dmsetup rename "$name" "$PREFIX$pv_ugly"
|
||||
dev1=$(dirname "$dev1")/$PREFIX$pv_ugly
|
||||
|
||||
dmsetup table | grep -F "$pv_ugly"
|
||||
|
||||
# 'pvcreate, vgcreate on filename with backslashed chars'
|
||||
created=$dev1
|
||||
# when used with real udev without fallback, it will fail here
|
||||
pvcreate "$dev1" || created=$dev2
|
||||
pvs | should grep $dev1
|
||||
pvdisplay | should grep -F "$pv_ugly"
|
||||
should check pv_field "$dev1" pv_name "$dev1"
|
||||
vgcreate $vg "$created"
|
||||
# 'no parse errors and VG really exists'
|
||||
vgs 2>err
|
||||
|
Loading…
x
Reference in New Issue
Block a user