mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Dave Chinner
parent
ab1d756fe1
commit
83ef157def
@@ -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!"
|
||||
|
||||
@@ -87,6 +87,7 @@ _do_test()
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
_require_test
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@ _do_test()
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
_require_test
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ _get_existing_uuid()
|
||||
_supported_fs xfs
|
||||
_supported_os Linux
|
||||
|
||||
_require_test
|
||||
_require_scratch
|
||||
|
||||
echo "*** get uuid"
|
||||
|
||||
@@ -44,6 +44,7 @@ _cleanup()
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
_require_test
|
||||
|
||||
src/fault $TEST_DIR || exit
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ _cleanup()
|
||||
# real QA test starts here
|
||||
_supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
_require_test
|
||||
|
||||
_my_stat_filter()
|
||||
{
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -48,6 +48,7 @@ _cleanup()
|
||||
_supported_fs xfs
|
||||
_supported_os Linux
|
||||
|
||||
_require_test
|
||||
# Must have loop device
|
||||
_require_loop
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -67,6 +67,7 @@ _filter_bmap()
|
||||
# Modify as appropriate.
|
||||
_supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
_require_test
|
||||
|
||||
testfile=$TEST_DIR/file.$seq
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -63,6 +63,7 @@ _do_dump()
|
||||
_supported_fs xfs
|
||||
_supported_os Linux
|
||||
|
||||
_require_test
|
||||
_require_user
|
||||
|
||||
echo "Preparing subtree"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -53,6 +53,7 @@ _cleanup()
|
||||
# Modify as appropriate.
|
||||
_supported_fs xfs
|
||||
_supported_os IRIX Linux
|
||||
_require_test
|
||||
_require_loop
|
||||
|
||||
bitsperlong=`src/feature -w`
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user