From: Martin Wilck <martin.wilck@suse.com>
To: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>,
Hannes Reinecke <hare@suse.de>, Daniel Wagner <dwagner@suse.de>,
linux-block@vger.kernel.org, linux-nvme@lists.infradead.org,
Martin Wilck <mwilck@suse.com>
Subject: [PATCH 2/3] blktests: nvme/032: skip on non-PCI devices
Date: Thu, 22 Aug 2024 21:38:13 +0200 [thread overview]
Message-ID: <20240822193814.106111-2-mwilck@suse.com> (raw)
In-Reply-To: <20240822193814.106111-1-mwilck@suse.com>
nvme/032 is a PCI-specific test.
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
tests/nvme/032 | 2 +-
tests/nvme/rc | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/tests/nvme/032 b/tests/nvme/032
index 5353e96..512d7ea 100755
--- a/tests/nvme/032
+++ b/tests/nvme/032
@@ -24,7 +24,7 @@ requires() {
}
device_requires() {
- _require_test_dev_is_nvme
+ _require_test_dev_is_nvme_pci
}
test_device() {
diff --git a/tests/nvme/rc b/tests/nvme/rc
index b3b1149..e7d2ab1 100644
--- a/tests/nvme/rc
+++ b/tests/nvme/rc
@@ -130,6 +130,14 @@ _require_test_dev_is_nvme() {
return 0
}
+_require_test_dev_is_nvme_pci() {
+ if [[ ! "$(readlink -f "$TEST_DEV_SYSFS/device")" =~ devices/pci ]]; then
+ SKIP_REASONS+=("$TEST_DEV is not a PCI NVMe device")
+ return 1
+ fi
+ return 0
+}
+
_require_test_dev_is_nvme_no_mpath() {
if [[ "$(readlink -f "$TEST_DEV_SYSFS/device")" =~ /nvme-subsystem/ ]]; then
SKIP_REASONS+=("$TEST_DEV is a NVMe multipath device")
--
2.46.0
next prev parent reply other threads:[~2024-08-22 19:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 19:38 [PATCH 1/3] blktests: nvme: skip passthru tests on multipath devices Martin Wilck
2024-08-22 19:38 ` Martin Wilck [this message]
2024-08-23 6:46 ` [PATCH 2/3] blktests: nvme/032: skip on non-PCI devices Daniel Wagner
2024-08-22 19:38 ` [PATCH 3/3] nvme: add test for controller rescan under I/O load Martin Wilck
2024-08-23 6:45 ` Daniel Wagner
2024-08-23 6:50 ` Martin Wilck
2024-08-23 7:03 ` Daniel Wagner
2024-08-23 10:18 ` Nilay Shroff
2024-08-23 13:39 ` Nilay Shroff
2024-08-23 14:49 ` Martin Wilck
2024-08-23 6:35 ` [PATCH 1/3] blktests: nvme: skip passthru tests on multipath devices Daniel Wagner
2024-08-23 6:41 ` Martin Wilck
2024-08-23 7:07 ` Daniel Wagner
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=20240822193814.106111-2-mwilck@suse.com \
--to=martin.wilck@suse.com \
--cc=Chaitanya.Kulkarni@wdc.com \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=mwilck@suse.com \
--cc=shinichiro.kawasaki@wdc.com \
/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