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

Message ID 20181229023452.28074-3-houtao1@huawei.com
State New
Headers show
Series
  • tiny fixes for xfstests
Related show

Commit Message

Hou Tao Dec. 29, 2018, 2:34 a.m. UTC
To ensure "blockdev --getsz $SCRATCH_DEV" will succeed.

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

Patch
diff mbox series

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`