common: Check fs consistency on TEST_DEV only when needed

Currently we're checking file system consistency on TEST_DEV after every
successful test run even though the TEST_DEV might not even be used in
that test.

Fix it by introducing _require_test to for the test ti indicate that
it's about to use TEST_DEV.

Also add _require_test to the new script so that this requirement is a
default.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Lukas Czerner
2014-08-13 11:08:41 +10:00
committed by Dave Chinner
parent ab1d756fe1
commit 83ef157def
131 changed files with 180 additions and 1 deletions
+1
View File
@@ -48,6 +48,7 @@ _supported_os Linux
_require_xfs_io_command "fiemap"
_require_cp_reflink
_require_test
rm -f $seqres.full