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

tests: skip test if scsi_debug is not available

This commit is contained in:
Zdenek Kabelac 2019-11-01 16:07:20 +01:00
parent 5f064e2221
commit dbaa4cdcdf

View File

@ -22,7 +22,7 @@ LOGICAL_BLOCK_SIZE=4096
# 4096 << 9 = 2MB physical block size
PHYSICAL_BLOCK_SHIFT=9
aux prepare_scsi_debug_dev 256 sector_size=$LOGICAL_BLOCK_SIZE physblk_exp=$PHYSICAL_BLOCK_SHIFT
aux prepare_scsi_debug_dev 256 sector_size=$LOGICAL_BLOCK_SIZE physblk_exp=$PHYSICAL_BLOCK_SHIFT || skip
check sysfs "$(< SCSI_DEBUG_DEV)" queue/logical_block_size "$LOGICAL_BLOCK_SIZE"