]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fstests: add missing _require_scratch
authorWang Yugui <wangyugui@e16-tech.com>
Thu, 18 Aug 2022 02:56:14 +0000 (10:56 +0800)
committerZorro Lang <zlang@kernel.org>
Sat, 20 Aug 2022 14:14:55 +0000 (22:14 +0800)
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>
tests/btrfs/202
tests/btrfs/215
tests/btrfs/268
tests/btrfs/269
tests/btrfs/270

index c1fa3c3ffd6d897e6b39e4fecbdf8a09b8aa26fe..5f0429f18bf976d71d9abc6e9c91a11178080bdc 100755 (executable)
@@ -11,6 +11,7 @@ _begin_fstest auto quick subvol snapshot
 . ./common/filter
 
 _supported_fs btrfs
+_require_scratch
 
 _scratch_mkfs >> $seqres.full 2>&1
 _scratch_mount
index 928f365c35c035d3ff7df0e73b79bd501f63e698..3daa696aa6363962ada6d9c9b3d26a143e8605da 100755 (executable)
@@ -24,6 +24,7 @@ get_physical()
 
 # Modify as appropriate.
 _supported_fs btrfs
+_require_scratch
 # Overwriting data is forbidden on a zoned block device
 _require_non_zoned_device $SCRATCH_DEV
 
index 5043bb02b32f7401eb6e5d70ce0b5c25c23f3258..9dc14a181400ba8b6607445cab63b61414dc24c6 100755 (executable)
@@ -14,6 +14,7 @@ _begin_fstest auto quick read_repair
 . ./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
index 3c11da3fc47a4f49ca0d8850e44e3b18f68c48cb..ad8f72867e860454f4f3a49ed1d7fe067948fc78 100755 (executable)
@@ -18,6 +18,7 @@ _begin_fstest auto quick read_repair
 . ./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
index 5b73fb15d4d207b717739fef846579a4fd81efbd..221ef7d251acdf6492c9e724aa8d7079d75c294e 100755 (executable)
@@ -12,6 +12,7 @@ _begin_fstest auto quick read_repair compress
 . ./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