mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Dave Chinner
parent
ddd55d55a7
commit
ab1d756fe1
Regular → Executable
-2
@@ -94,8 +94,6 @@ _write_after_fsync_rename_test()
|
||||
_mount_flakey
|
||||
md5sum $SCRATCH_MNT/bar | _filter_scratch
|
||||
_unmount_flakey
|
||||
_check_scratch_fs $FLAKEY_DEV
|
||||
[ $? -ne 0 ] && _fatal "fsck failed"
|
||||
}
|
||||
|
||||
_scratch_mkfs >> $seqres.full 2>&1
|
||||
|
||||
Reference in New Issue
Block a user