mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: skip when snapshot does not work
Some older kernel (i.e. 3.11.10 on fc20) do not work properly. Skip the test if snapshot does not meet 50%.
This commit is contained in:
parent
7ee3ccd826
commit
ae76e8f0d0
@ -22,6 +22,8 @@ lvcreate -aey -l 5 -n foo $vg
|
||||
lvcreate -s -n snap $vg/foo -l 3 -c 4k
|
||||
lvcreate -s -n snap2 $vg/foo -l 6 -c 4k
|
||||
dd if=/dev/zero of="$DM_DEV_DIR/$vg/snap2" count=1 bs=1024 oflag=direct
|
||||
# skip test with broken kernel
|
||||
check lv_field $vg/snap2 data_percent "50.00" || skip
|
||||
lvcreate -aey --type mirror -m 1 -n mirr $vg -l 1 --mirrorlog core
|
||||
lvs -a $vg
|
||||
aux apitest percent $vg
|
||||
|
Loading…
Reference in New Issue
Block a user