1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

tests: skip test if the memory cannot be allocated in kernel

This commit is contained in:
Zdenek Kabelac 2023-10-05 22:59:31 +02:00
parent f5512315d2
commit 2c3742039c

View File

@ -26,7 +26,8 @@ aux prepare_scsi_debug_dev 256 sector_size=$LOGICAL_BLOCK_SIZE physblk_exp=$PHYS
check sysfs "$(< SCSI_DEBUG_DEV)" queue/logical_block_size "$LOGICAL_BLOCK_SIZE" check sysfs "$(< SCSI_DEBUG_DEV)" queue/logical_block_size "$LOGICAL_BLOCK_SIZE"
aux prepare_pvs 1 256 # Eventually we may fail here on 'page allocation failure' if kernel is low on sequential memory
aux prepare_pvs 1 256 || skip "Cannot handle large logical block size"
get_devs get_devs