Skip to contentSkip to conversation

fstests: add missing _require_scratch

PATCH In review Wang Yugui 2 participants 2 messages Aug 18, 2022 – Aug 19, 2022

lore
Share & tools
lore

Wang Yugui

author
#0 lore raw

PATCH 1/1 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.

---
 tests/btrfs/202 | 1 +
 tests/btrfs/215 | 1 +
 tests/btrfs/268 | 1 +
 tests/btrfs/269 | 1 +
 tests/btrfs/270 | 1 +
 5 files changed, 5 insertions(+)
tests/btrfs/202 +1 -0
index c1fa3c3f..5f0429f1 100755
@@ -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
tests/btrfs/215 +1 -0
index 27649160..7df74892 100755
@@ -25,6 +25,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
 
tests/btrfs/268 +1 -0
index 5043bb02..9dc14a18 100755
@@ -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
tests/btrfs/269 +1 -0
index 3c11da3f..ad8f7286 100755
@@ -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
tests/btrfs/270 +1 -0
index 5b73fb15..221ef7d2 100755
@@ -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
Signature · 1 line
2.36.2