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

tests: crypt test cannot run on ramdisk

This test can't use brd (ramdisk) as backend since for some
weird reason  lsblk is not listing these device.

TODO: test could be probably rewritten to avoid using lsblk somehow??
This commit is contained in:
Zdenek Kabelac 2018-05-12 16:00:55 +02:00
parent 6f48741062
commit 842b3074b7

View File

@ -14,6 +14,10 @@ test_description='Exercise fsadm filesystem resize on crypt devices'
SKIP_WITH_LVMLOCKD=1 SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1 SKIP_WITH_LVMPOLLD=1
# FIXME: cannot use brd (ramdisk) - lsblk is NOT listing it
# so lsblk usage should be replaced
export LVM_TEST_PREFER_BRD=0
. lib/inittest . lib/inittest
aux prepare_vg 1 300 aux prepare_vg 1 300
@ -119,7 +123,8 @@ check_missing()
} }
get_crypt_kname() { get_crypt_kname() {
lsblk -r -n -o KNAME,NAME | grep "$1" | cut -d ' ' -f 1 lsblk -r -n -o KNAME,NAME | tee out
grep "$1" out | cut -d ' ' -f 1
} }