summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2019-11-01 16:07:20 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2019-11-01 16:12:39 +0100
commit4ae481bb301d8c8b3a8ea3725a0ae57f3d7bca5c (patch)
treed9e7a47b8c89c125f4559fbfce9136eac0b59b27
parent2cd30c0d44996cfafcf450201948139f76570ab7 (diff)
downloadlvm2-4ae481bb301d8c8b3a8ea3725a0ae57f3d7bca5c.tar.gz
tests: skip test if scsi_debug is not available
-rw-r--r--test/shell/large-physical-sector-size.sh2
1 files changed, 1 insertions, 1 deletions
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"