From: Zdenek Kabelac Date: Fri, 1 Nov 2019 15:07:20 +0000 (+0100) Subject: tests: skip test if scsi_debug is not available X-Git-Tag: v2_03_07~71 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=dbaa4cdcdf312239f26029cb7f206b54587c407a;p=lvm2.git tests: skip test if scsi_debug is not available --- diff --git a/test/shell/large-physical-sector-size.sh b/test/shell/large-physical-sector-size.sh index 891f40962..d076d862c 100644 --- a/test/shell/large-physical-sector-size.sh +++ b/test/shell/large-physical-sector-size.sh @@ -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"