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
@@ -40,6 +40,7 @@ _need_to_be_root
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
_require_test
[ -f core ] && rm -f core
[ -f core ] && echo "Warning: can't nuke existing core file!"
+1
View File
@@ -87,6 +87,7 @@ _do_test()
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
_require_test
rm -f $seqres.full
+1
View File
@@ -104,6 +104,7 @@ _do_test()
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
_require_test
rm -f $seqres.full
+1
View File
@@ -44,6 +44,7 @@ _get_existing_uuid()
_supported_fs xfs
_supported_os Linux
_require_test
_require_scratch
echo "*** get uuid"
+1
View File
@@ -44,6 +44,7 @@ _cleanup()
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
_require_test
src/fault $TEST_DIR || exit
+1
View File
@@ -45,6 +45,7 @@ _cleanup()
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
_require_test
_my_stat_filter()
{
+1
View File
@@ -126,6 +126,7 @@ _verify_copy()
# real QA test starts here
_supported_fs xfs
_supported_os Linux
_require_test
[ "$USE_EXTERNAL" = yes ] && _notrun "Cannot xfs_copy with external devices"
[ -n "$XFS_COPY_PROG" ] || _notrun "xfs_copy binary not yet installed"
+1
View File
@@ -48,6 +48,7 @@ _cleanup()
_supported_fs xfs
_supported_os Linux
_require_test
# Must have loop device
_require_loop
+1
View File
@@ -46,6 +46,7 @@ _supported_fs xfs
# Apparently should be able to work on IRIX,
# but not at the moment.
_supported_os Linux
_require_test
quiet=-q
clean=-c
+1
View File
@@ -51,6 +51,7 @@ pgsize=`$here/src/feature -s`
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
_require_test
if [ $HOSTOS == "IRIX" ]; then
if uname -R | grep -iq debug; then
+1
View File
@@ -48,6 +48,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fs xfs
_supported_os Linux IRIX
_require_test
_require_xfs_quota
dir=$SCRATCH_MNT/project
+1
View File
@@ -67,6 +67,7 @@ _filter_bmap()
# Modify as appropriate.
_supported_fs xfs
_supported_os IRIX Linux
_require_test
testfile=$TEST_DIR/file.$seq
+1
View File
@@ -64,6 +64,7 @@ _filter_bmap()
# Modify as appropriate.
_supported_fs xfs
_supported_os IRIX Linux
_require_test
# io tests
testfile=$TEST_DIR/file.$seq
+1
View File
@@ -63,6 +63,7 @@ _do_dump()
_supported_fs xfs
_supported_os Linux
_require_test
_require_user
echo "Preparing subtree"
+1
View File
@@ -48,6 +48,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
# real QA test starts here
_supported_fs xfs
_supported_os Linux
_require_test
bitsperlong=`src/feature -w`
if [ "$bitsperlong" -ne 32 ]; then
+1
View File
@@ -53,6 +53,7 @@ _cleanup()
# Modify as appropriate.
_supported_fs xfs
_supported_os IRIX Linux
_require_test
_require_loop
bitsperlong=`src/feature -w`
+1
View File
@@ -47,6 +47,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
# real QA test starts here
_supported_fs xfs
_supported_os Linux
_require_test
[ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
+1
View File
@@ -49,6 +49,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
# real QA test starts here
_supported_fs xfs
_supported_os Linux
_require_test
TDIR="${TEST_DIR}/t_holes"
NFILES="10"
+1
View File
@@ -45,6 +45,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
# real QA test starts here
_supported_fs xfs
_supported_os Linux
_require_test
_test_io_zero()
{
+1
View File
@@ -45,6 +45,7 @@ _cleanup()
# real QA test starts here
_supported_fs xfs
_supported_os Linux
_require_test
_require_loop
LOOP_DEV=$TEST_DIR/$seq.fs

Some files were not shown because too many files have changed in this diff Show More