From: Wang Yugui <wangyugui@e16-tech.com>
To: fstests@vger.kernel.org
Cc: Wang Yugui <wangyugui@e16-tech.com>
Subject: [PATCH] fstests: add missing _require_scratch
Date: Thu, 18 Aug 2022 10:56:14 +0800 [thread overview]
Message-ID: <20220818025614.47274-1-wangyugui@e16-tech.com> (raw)
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>
---
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(+)
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 27649160..7df74892 100755
--- a/tests/btrfs/215
+++ b/tests/btrfs/215
@@ -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
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
--
2.36.2
next reply other threads:[~2022-08-18 2:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-18 2:56 Wang Yugui [this message]
2022-08-19 10:36 ` [PATCH] fstests: add missing _require_scratch Pavel Reichl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220818025614.47274-1-wangyugui@e16-tech.com \
--to=wangyugui@e16-tech.com \
--cc=fstests@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox