1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: update test for modified output

We now print  vg/lv  for lv resized volume
This commit is contained in:
Zdenek Kabelac 2016-06-23 22:35:51 +02:00
parent fc174f6b74
commit 5070e7fcf7

View File

@ -30,8 +30,8 @@ not lvextend -l 10 -L 64m $vg/$lv "$dev1" 2>err
grep "Please specify either size or extents but not both." err grep "Please specify either size or extents but not both." err
# 'lvextend accepts no size or extents but one PV - bz154691' # 'lvextend accepts no size or extents but one PV - bz154691'
lvextend $vg/$lv "$dev1" >out lvextend $vg/$lv "$dev1" | tee out
grep "Logical volume $lv successfully resized" out grep "Logical volume $vg/$lv successfully resized" out
check pv_field "$dev1" pv_free "0" check pv_field "$dev1" pv_free "0"
lvremove -f $vg/$lv lvremove -f $vg/$lv
@ -47,8 +47,8 @@ lvremove -f $vg/$lv
lvcreate -L 64m -n $lv $vg lvcreate -L 64m -n $lv $vg
# 'lvextend accepts no size but extents 100%PVS and two PVs - bz154691' # 'lvextend accepts no size but extents 100%PVS and two PVs - bz154691'
lvextend -l +100%PVS $vg/$lv "$dev1" "$dev2" >out lvextend -l +100%PVS $vg/$lv "$dev1" "$dev2" | tee out
grep "Logical volume $lv successfully resized" out grep "Logical volume $vg/$lv successfully resized" out
check pv_field "$dev1" pv_free "0" check pv_field "$dev1" pv_free "0"
check pv_field "$dev2" pv_free "0" check pv_field "$dev2" pv_free "0"
@ -80,8 +80,8 @@ check lv_field $vg/$lv lv_size "48.00m"
# 'lvextend with partially allocated PVs and extents 100%PVS with PE ranges' # 'lvextend with partially allocated PVs and extents 100%PVS with PE ranges'
extend_pvs=$(for i in $(seq 0 6 18); do echo -n "$dev1:$i-$(($i + 2)) "; done) extend_pvs=$(for i in $(seq 0 6 18); do echo -n "$dev1:$i-$(($i + 2)) "; done)
lvextend -l +100%PVS $vg/$lv $extend_pvs >out lvextend -l +100%PVS $vg/$lv $extend_pvs | tee out
grep "Logical volume $lv successfully resized" out grep "Logical volume $vg/$lv successfully resized" out
check lv_field $vg/$lv lv_size "72.00m" check lv_field $vg/$lv lv_size "72.00m"
# Simple seg_count validation; initially create the LV with half the # of # Simple seg_count validation; initially create the LV with half the # of