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

tests: check warn about belong is printed

This commit is contained in:
Zdenek Kabelac 2016-02-23 14:38:26 +01:00
parent c0b836e316
commit 5d7e83c73c

View File

@ -54,14 +54,17 @@ for mdacp in 0 1 2; do
vgcreate $vg "$dev1" "$dev2"
# pvremove -f fails when pv in a vg (---metadatacopies $mdacp)
not pvremove -f "$dev1"
not pvremove -f "$dev1" 2>&1 | tee out
grep "belongs" out
pvs "$dev1"
# pvremove -ff fails without confirmation when pv in a vg (---metadatacopies $mdacp)
echo n | not pvremove -ff "$dev1"
not pvremove -ff "$dev1" 2>&1 | tee out
grep "belongs" out
# pvremove -ff succeds with confirmation when pv in a vg (---metadatacopies $mdacp)
pvremove -ffy "$dev1"
pvremove -ffy "$dev1" 2>&1 | tee out
grep "belongs" out
not pvs "$dev1"
vgreduce --removemissing $vg