]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: require scratch dev in tests using dm targets
authorEryu Guan <eguan@redhat.com>
Thu, 22 Sep 2016 08:52:36 +0000 (16:52 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 23 Sep 2016 02:04:28 +0000 (10:04 +0800)
commita68323584dc6bf376100d49f89bb7f17982e22e9
treeaeba55ffe8849a1ec9ef32516b6939d4c35af534
parente35b2df320ec0687dc093044281d065d7508a189
fstests: require scratch dev in tests using dm targets

We build dm device on top of scratch dev so we require $SCRATCH_DEV
to be a valid block device in _require_dm_target(). And we need to
_require_scratch before _require_dm_target, otherwise test fails if
there's no SCRATCH_DEV defined, where it should _notrun.

  +Usage: _require_block_device <dev>

So add _require_scratch_nocheck to generic/347 (we do the fs check
on thinp device), move _require_scratch before _require_dm_target in
xfs/006 and xfs/264.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/347
tests/xfs/006
tests/xfs/264