generic: add _require_block_device to more tests
authorEryu Guan <eguan@redhat.com>
Fri, 1 Jul 2016 03:08:41 +0000 (11:08 +0800)
committerEryu Guan <eguan@redhat.com>
Sat, 16 Jul 2016 09:34:57 +0000 (17:34 +0800)
commit2caf9a321867662dc195bef5fa214a03ba8fd070
tree2d1fc350af3da3402c27572567abc89ae1f09792
parente5df569c87e734f405d8e3b5fb423ebf2d687d4b
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>
tests/generic/067
tests/generic/299
tests/generic/300