When $SCRATCH_DEV is not defined correctly, we need _require_scratch to skip
the tests that need $SCRATCH_DEV without an error.
so add missing _require_scratch.
Signed-off-by: Wang Yugui <wangyugui@e16-tech.com>
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
. ./common/filter
_supported_fs btrfs
+_require_scratch
_scratch_mkfs >> $seqres.full 2>&1
_scratch_mount
# Modify as appropriate.
_supported_fs btrfs
+_require_scratch
# Overwriting data is forbidden on a zoned block device
_require_non_zoned_device $SCRATCH_DEV
. ./common/filter
_supported_fs btrfs
+_require_scratch
_require_odirect
_require_non_zoned_device "${SCRATCH_DEV}" # no overwrites on zoned devices
_require_scratch_dev_pool 2
. ./common/filter
_supported_fs btrfs
+_require_scratch
_require_odirect
_require_non_zoned_device "${SCRATCH_DEV}" # no overwrites on zoned devices
_require_scratch_dev_pool 4
. ./common/filter
_supported_fs btrfs
+_require_scratch
_require_btrfs_command inspect-internal dump-tree
_require_non_zoned_device "${SCRATCH_DEV}" # no overwrites on zoned devices
_require_scratch_dev_pool 2