@@ -24,7 +24,7 @@ requires() {
}
device_requires() {
- _require_test_dev_is_nvme
+ _require_test_dev_is_nvme_pci
}
test_device() {
@@ -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_not_nvme_multipath() {
if [[ "$(readlink -f "$TEST_DEV_SYSFS/device")" =~ /nvme-subsystem/ ]]; then
SKIP_REASONS+=("$TEST_DEV is a NVMe multipath device")
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(-)