mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
test: Skip the topology test if setting up scsi_debug fails.
This commit is contained in:
parent
deea86c7f4
commit
57460fe5a8
@ -53,7 +53,8 @@ PER_DEV_SIZE=34
|
|||||||
DEV_SIZE=$(($NUM_DEVS*$PER_DEV_SIZE))
|
DEV_SIZE=$(($NUM_DEVS*$PER_DEV_SIZE))
|
||||||
|
|
||||||
# Test that kernel supports topology
|
# Test that kernel supports topology
|
||||||
aux prepare_scsi_debug_dev $DEV_SIZE
|
aux prepare_scsi_debug_dev $DEV_SIZE || skip
|
||||||
|
|
||||||
if [ ! -e /sys/block/$(basename $(cat SCSI_DEBUG_DEV))/alignment_offset ] ; then
|
if [ ! -e /sys/block/$(basename $(cat SCSI_DEBUG_DEV))/alignment_offset ] ; then
|
||||||
aux cleanup_scsi_debug_dev
|
aux cleanup_scsi_debug_dev
|
||||||
skip
|
skip
|
||||||
|
Loading…
Reference in New Issue
Block a user