From: Wang Yugui Date: Thu, 18 Aug 2022 02:56:14 +0000 (+0800) Subject: fstests: add missing _require_scratch X-Git-Tag: v2022.08.21~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9734480a1ddc111d59063c094ad32dc733221fb;p=xfstests-dev.git fstests: add missing _require_scratch 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 Reviewed-by: Pavel Reichl Signed-off-by: Zorro Lang --- diff --git a/tests/btrfs/202 b/tests/btrfs/202 index c1fa3c3f..5f0429f1 100755 --- a/tests/btrfs/202 +++ b/tests/btrfs/202 @@ -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 diff --git a/tests/btrfs/215 b/tests/btrfs/215 index 928f365c..3daa696a 100755 --- a/tests/btrfs/215 +++ b/tests/btrfs/215 @@ -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 diff --git a/tests/btrfs/268 b/tests/btrfs/268 index 5043bb02..9dc14a18 100755 --- a/tests/btrfs/268 +++ b/tests/btrfs/268 @@ -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 diff --git a/tests/btrfs/269 b/tests/btrfs/269 index 3c11da3f..ad8f7286 100755 --- a/tests/btrfs/269 +++ b/tests/btrfs/269 @@ -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 diff --git a/tests/btrfs/270 b/tests/btrfs/270 index 5b73fb15..221ef7d2 100755 --- a/tests/btrfs/270 +++ b/tests/btrfs/270 @@ -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