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

tests: more pvchange tests

This commit is contained in:
Zdenek Kabelac 2014-05-21 23:13:19 +02:00
parent 79f4665243
commit 37b4dc7775

View File

@ -77,7 +77,11 @@ check pvlv_counts $vg1 2 0 0
# some args are needed
invalid pvchange
# some PV needed
invalid pvchange --addtag tag
invalid pvchange --deltag tag
# some --all & PV can go together
invalid pvchange -a "$dev1" --addtag tag
# '-a' needs more params
invalid pvchange -a
# '-a' is searching for devs, so specifying device is invalid
@ -91,6 +95,11 @@ not pvchange -u "$dev1"
vgremove -f $vg1
# "pvchange reject --addtag to lvm1 pv"
# cannot change PV tag to PV that is not in VG"
fail pvchange "$dev1" --addtag test
fail pvchange "$dev1" --deltag test
# cannot add PV tag to lvm1 format
pvcreate -M1 "$dev1"
not pvchange "$dev1" --addtag test
vgcreate -M1 $vg1 "$dev1"
fail pvchange "$dev1" --addtag test