generic/361: require that file system uses a real block device
authorTheodore Ts'o <tytso@mit.edu>
Fri, 23 Sep 2016 20:05:20 +0000 (16:05 -0400)
committerEryu Guan <eguan@redhat.com>
Mon, 26 Sep 2016 02:18:08 +0000 (10:18 +0800)
This test tries to use _mkfs_dev to format a loop device and then
tries to mount it.  For file systems that don't use block devices
(nfs, tmpfs, etc.) this is doomed to failure.  So skip this test if
$SCRATCH_DEV is not a block device.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/361

index ad047c665bcbc110226186f6bc517eab6d0588f9..c09863c33101ef9b8e384bebd13aa02e492bcf60 100755 (executable)
@@ -52,6 +52,7 @@ rm -f $seqres.full
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+_require_block_device $SCRATCH_DEV
 
 # create a small filesystem to hold another filesystem image
 _scratch_mkfs_sized $((512 * 1024 * 1024)) >>$seqres.full 2>&1