[PATCH 2/5] generic/019: check scratch device is a block device or not

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



To ensure "blockdev --getsz $SCRATCH_DEV" will succeed.

Signed-off-by: Hou Tao <houtao1@xxxxxxxxxx>
---
 tests/generic/019 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/generic/019 b/tests/generic/019
index 32db36fc..8e1c9331 100755
--- a/tests/generic/019
+++ b/tests/generic/019
@@ -22,6 +22,7 @@ status=1	# failure is the default!
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+_require_block_device $SCRATCH_DEV
 _require_fail_make_request
 
 SYSFS_BDEV=`_sysfs_dev $SCRATCH_DEV`
-- 
2.16.2.dirty




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux