generic: add _require_block_device to more tests

generic/067 mounts $SCRATCH_DEV directly in the test, assuming it's
a block device. generic/299 and generic/300 query the size of
$SCRATCH_DEV by running 'blockdev --getsz $SCRATCH_DEV'.

So add the check to make sure $SCRATCH_DEV is a real block device in
these tests.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Eryu Guan
2016-07-01 11:08:41 +08:00
parent e5df569c87
commit 2caf9a3218
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ _require_test_symlinks
_require_test
_require_scratch
_require_loop
_require_block_device $SCRATCH_DEV
rm -f $seqres.full