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

tests: update checked messages

This commit is contained in:
Zdenek Kabelac 2017-10-27 17:02:22 +02:00
parent 63c50ced89
commit eb710cced1
4 changed files with 17 additions and 10 deletions

View File

@ -58,13 +58,13 @@ grep "lv_is_visible" err
# Cannot use thin-pool, _tdata, _tmeta as origin
not lvconvert --yes --type snapshot $vg/cpool $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
not lvconvert --yes --type snapshot $vg/cpool_cdata $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
not lvconvert --yes --type snapshot $vg/cpool_cmeta $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
lvconvert --yes -s $vg/ch $vg/cow

View File

@ -42,11 +42,11 @@ grep "lv_is_visible" err
# cannot use _mimage
not lvconvert --yes --type snapshot $vg/mir_mimage_0 $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
# cannot use _mlog
not lvconvert --yes --type snapshot $vg/mir_mlog $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
lvconvert --yes -s $vg/mir $vg/cow

View File

@ -44,11 +44,11 @@ grep "lv_is_visible" err
# Cannot use _rimage
not lvconvert --yes --type snapshot $vg/rd_rimage_0 $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
# Cannot use _rmeta
not lvconvert --yes --type snapshot $vg/rd_rmeta_0 $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
lvconvert --yes -s $vg/rd $vg/cow

View File

@ -29,6 +29,7 @@ lvcreate -L1 -n cow $vg
# Thin and snapshot conversion
lvcreate -T -L1 -V10 -n th $vg/pool
eval $(lvs -S 'name=~_pmspare' -a -o name --config 'report/mark_hidden_devices=0' --noheading --nameprefixes $vg)
# Cannot create snapshot of pool's meta
not lvcreate -s -L1 $vg/pool_tmeta 2>&1 | tee err
@ -45,6 +46,9 @@ grep "not accept" err
not lvconvert --yes --type snapshot $vg/cow $vg/pool 2>&1 | tee err
grep "not accept" err
not lvconvert --yes --type snapshot $vg/cow $vg/$LVM2_LV_NAME 2>&1 | tee err
grep "lv_is_visible" err
not lvconvert --yes --type snapshot $vg/cow $vg/pool_tdata 2>&1 | tee err
grep "lv_is_visible" err
@ -53,13 +57,16 @@ grep "lv_is_visible" err
# Cannot use thin-pool, _tdata, _tmeta as origin
not lvconvert --yes --type snapshot $vg/pool $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
not lvconvert --yes --type snapshot $vg/$LVM2_LV_NAME $vg/cow 2>&1 | tee err
grep "not supported" err
not lvconvert --yes --type snapshot $vg/pool_tdata $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
not lvconvert --yes --type snapshot $vg/pool_tmeta $vg/cow 2>&1 | tee err
grep "invalid" err
grep "not supported" err
lvconvert --yes -s $vg/th $vg/cow