mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_03_06-tests-simplify-some-var-settings.patch

26e710
 test/lib/aux.sh                       | 2 +-
26e710
 test/shell/discards-thin.sh           | 2 --
26e710
 test/shell/lvconvert-thin.sh          | 2 --
26e710
 test/shell/lvcreate-large-raid10.sh   | 1 -
26e710
 test/shell/lvcreate-large.sh          | 2 --
26e710
 test/shell/pvcreate-operation-md.sh   | 3 +--
26e710
 test/shell/pvcreate-restore.sh        | 2 --
26e710
 test/shell/pvremove-thin.sh           | 2 --
26e710
 test/shell/scan-lvs.sh                | 4 +---
26e710
 test/shell/snapshot-remove-dmsetup.sh | 2 --
26e710
 test/shell/snapshot-usage-exa.sh      | 2 --
26e710
 test/shell/snapshot-usage.sh          | 2 --
26e710
 test/shell/vgsplit-stacked.sh         | 2 --
26e710
 13 files changed, 3 insertions(+), 25 deletions(-)
26e710
26e710
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
26e710
index 81e8f91..32d5a0b 100644
26e710
--- a/test/lib/aux.sh
26e710
+++ b/test/lib/aux.sh
26e710
@@ -1164,7 +1164,7 @@ devices/default_data_alignment = 1
26e710
 devices/dir = "$DM_DEV_DIR"
26e710
 devices/filter = "a|.*|"
26e710
 devices/global_filter = [ "a|$DM_DEV_DIR/mapper/${PREFIX}.*pv[0-9_]*$|", "r|.*|" ]
26e710
-devices/md_component_detection  = 0
26e710
+devices/md_component_detection = 0
26e710
 devices/scan = "$DM_DEV_DIR"
26e710
 devices/sysfs_scan = 1
26e710
 devices/write_cache_state = 0
26e710
diff --git a/test/shell/discards-thin.sh b/test/shell/discards-thin.sh
26e710
index 3564a87..f27d4c3 100644
26e710
--- a/test/shell/discards-thin.sh
26e710
+++ b/test/shell/discards-thin.sh
26e710
@@ -25,8 +25,6 @@ export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
26e710
 #
26e710
 aux have_thin 1 1 0 || skip
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 aux prepare_vg 2 64
26e710
 get_devs
26e710
 
26e710
diff --git a/test/shell/lvconvert-thin.sh b/test/shell/lvconvert-thin.sh
26e710
index 731c45b..1f8d2ed 100644
26e710
--- a/test/shell/lvconvert-thin.sh
26e710
+++ b/test/shell/lvconvert-thin.sh
26e710
@@ -17,8 +17,6 @@ export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 prepare_lvs() {
26e710
 	lvremove -f $vg
26e710
 	lvcreate -L10M -n $lv1 $vg
26e710
diff --git a/test/shell/lvcreate-large-raid10.sh b/test/shell/lvcreate-large-raid10.sh
26e710
index 1ad09aa..a46be37 100644
26e710
--- a/test/shell/lvcreate-large-raid10.sh
26e710
+++ b/test/shell/lvcreate-large-raid10.sh
26e710
@@ -20,7 +20,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 # FIXME  update test to make something useful on <16T
26e710
 aux can_use_16T || skip
26e710
 aux have_raid 1 3 0 || skip
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
 
26e710
 aux prepare_vg 5
26e710
 
26e710
diff --git a/test/shell/lvcreate-large.sh b/test/shell/lvcreate-large.sh
26e710
index b1cb0b0..473b0ed 100644
26e710
--- a/test/shell/lvcreate-large.sh
26e710
+++ b/test/shell/lvcreate-large.sh
26e710
@@ -17,8 +17,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 # FIXME  update test to make something useful on <16T
26e710
 aux can_use_16T || skip
26e710
 
26e710
diff --git a/test/shell/pvcreate-operation-md.sh b/test/shell/pvcreate-operation-md.sh
26e710
index 11f0887..4b51932 100644
26e710
--- a/test/shell/pvcreate-operation-md.sh
26e710
+++ b/test/shell/pvcreate-operation-md.sh
26e710
@@ -22,8 +22,7 @@ test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
26e710
 	modprobe raid0 || skip
26e710
 
26e710
 aux lvmconf 'devices/md_component_detection = 1'
26e710
-aux extend_filter_LVMTEST
26e710
-aux extend_filter "a|/dev/md.*|"
26e710
+aux extend_filter_LVMTEST "a|/dev/md|"
26e710
 
26e710
 aux prepare_devs 2
26e710
 
26e710
diff --git a/test/shell/pvcreate-restore.sh b/test/shell/pvcreate-restore.sh
26e710
index 789f45c..d0b46eb 100644
26e710
--- a/test/shell/pvcreate-restore.sh
26e710
+++ b/test/shell/pvcreate-restore.sh
26e710
@@ -15,8 +15,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 aux prepare_vg 4
26e710
 
26e710
 lvcreate --type snapshot -s -L10 -n $lv1 $vg --virtualsize 2T
26e710
diff --git a/test/shell/pvremove-thin.sh b/test/shell/pvremove-thin.sh
26e710
index 84a2a55..9859b6c 100644
26e710
--- a/test/shell/pvremove-thin.sh
26e710
+++ b/test/shell/pvremove-thin.sh
26e710
@@ -18,8 +18,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 aux prepare_vg
26e710
 
26e710
 aux have_thin 1 8 0 || skip
26e710
diff --git a/test/shell/scan-lvs.sh b/test/shell/scan-lvs.sh
26e710
index 8e8a77d..f49bf4d 100644
26e710
--- a/test/shell/scan-lvs.sh
26e710
+++ b/test/shell/scan-lvs.sh
26e710
@@ -15,10 +15,9 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
+# Sets 'scan_lvs = 1'
26e710
 aux extend_filter_LVMTEST
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 aux prepare_pvs 1
26e710
 
26e710
 vgcreate $SHARED $vg1 "$dev1"
26e710
@@ -44,4 +43,3 @@ lvchange -an "$vg1/$lv1"
26e710
 lvremove "$vg1/$lv1"
26e710
 
26e710
 vgremove $vg1
26e710
-
26e710
diff --git a/test/shell/snapshot-remove-dmsetup.sh b/test/shell/snapshot-remove-dmsetup.sh
26e710
index 916aec9..19411ce 100644
26e710
--- a/test/shell/snapshot-remove-dmsetup.sh
26e710
+++ b/test/shell/snapshot-remove-dmsetup.sh
26e710
@@ -17,8 +17,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 which mkfs.ext2 || skip
26e710
 
26e710
 aux prepare_vg 5
26e710
diff --git a/test/shell/snapshot-usage-exa.sh b/test/shell/snapshot-usage-exa.sh
26e710
index f537f0d..5d666bf 100644
26e710
--- a/test/shell/snapshot-usage-exa.sh
26e710
+++ b/test/shell/snapshot-usage-exa.sh
26e710
@@ -18,8 +18,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 aux can_use_16T || skip
26e710
 
26e710
 aux prepare_pvs 1
26e710
diff --git a/test/shell/snapshot-usage.sh b/test/shell/snapshot-usage.sh
26e710
index 5cfdae6..bcfa16a 100644
26e710
--- a/test/shell/snapshot-usage.sh
26e710
+++ b/test/shell/snapshot-usage.sh
26e710
@@ -17,8 +17,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 MKFS=mkfs.ext2
26e710
 which $MKFS || skip
26e710
 
26e710
diff --git a/test/shell/vgsplit-stacked.sh b/test/shell/vgsplit-stacked.sh
26e710
index 09af3f7..331ee8e 100644
26e710
--- a/test/shell/vgsplit-stacked.sh
26e710
+++ b/test/shell/vgsplit-stacked.sh
26e710
@@ -15,8 +15,6 @@ SKIP_WITH_LVMPOLLD=1
26e710
 
26e710
 . lib/inittest
26e710
 
26e710
-aux lvmconf 'devices/scan_lvs = 1'
26e710
-
26e710
 aux extend_filter_LVMTEST
26e710
 aux prepare_pvs 3
26e710