common: Check the file system consistency on SCRATCH_DEV

There are about 198 tests which requires scratch_dev, but does not check
the file system consistency afterwards. Xfstests infrastructure does not
do it automatically, so fix it by running _check_scratch_fs() after
each test that _require_scratch.

Also remove all the _check_scratch_fs() calls that are not actually needed
and will be covered by the check script.

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:01:04 +10:00
committed by Dave Chinner
parent ddd55d55a7
commit ab1d756fe1
61 changed files with 14 additions and 113 deletions
+2
View File
@@ -626,6 +626,8 @@ for section in $HOST_OPTIONS_SECTIONS; do
try="$try $seqnum"
n_try=`expr $n_try + 1`
_check_test_fs
test -f ${RESULT_DIR}/require_scratch && _check_scratch_fs
rm -f ${RESULT_DIR}/require_scratch
fi
seq="after_$seqnum"