summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-05-11 09:35:07 -0500
committerDavid Teigland <teigland@redhat.com>2016-05-11 09:35:42 -0500
commitf3d508630d7acdd638afae700973f1d68e43cbcc (patch)
treec3592bfd6832946db6c8a98629bc49df5ba2743e
parent5c18b0ce9c5e4f94cce83a98cb2d996875cfa812 (diff)
downloadlvm2-f3d508630d7acdd638afae700973f1d68e43cbcc.tar.gz
test: process-each-duplicate-pvs
skip on RHEL5 where DEV_USED_FOR_LV doesn't work because it depends on a newer bit of sysfs.
-rw-r--r--test/shell/process-each-duplicate-pvs.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/shell/process-each-duplicate-pvs.sh b/test/shell/process-each-duplicate-pvs.sh
index 41d844d6d..9ab98dc75 100644
--- a/test/shell/process-each-duplicate-pvs.sh
+++ b/test/shell/process-each-duplicate-pvs.sh
@@ -15,6 +15,11 @@ SKIP_WITH_CLVMD=1
aux prepare_devs 6 16
+# The LV-using-PV tests (DEV_USED_FOR_LV, where a PV is
+# preferred if an active LV is using it) depend on sysfs
+# info that is not available in RHEL5 kernels.
+aux driver_at_least 4 15 || skip
+
aux lvmconf 'devices/allow_changes_with_duplicate_pvs = 0'
pvcreate "$dev1"