diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-06-20 00:03:18 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-06-20 00:05:46 +0200 |
commit | 78c937552a60e8e61cb9f1aca22095f28a39c174 (patch) | |
tree | 1c1120aaa26f12c5d07c8a5a4a1ca5db478746db | |
parent | a311684c4ab0ec2cf3a3d11412295da52df63c88 (diff) | |
download | lvm2-78c937552a60e8e61cb9f1aca22095f28a39c174.tar.gz |
tests: simplify some var settings
scan_lvs now automatically comes with extend_filter_LVMTEST
-rw-r--r-- | test/lib/aux.sh | 2 | ||||
-rw-r--r-- | test/shell/discards-thin.sh | 2 | ||||
-rw-r--r-- | test/shell/lvconvert-thin.sh | 2 | ||||
-rw-r--r-- | test/shell/lvcreate-large-raid10.sh | 1 | ||||
-rw-r--r-- | test/shell/lvcreate-large.sh | 2 | ||||
-rw-r--r-- | test/shell/pvcreate-operation-md.sh | 3 | ||||
-rw-r--r-- | test/shell/pvcreate-restore.sh | 2 | ||||
-rw-r--r-- | test/shell/pvremove-thin.sh | 2 | ||||
-rw-r--r-- | test/shell/scan-lvs.sh | 4 | ||||
-rw-r--r-- | test/shell/snapshot-remove-dmsetup.sh | 2 | ||||
-rw-r--r-- | test/shell/snapshot-usage-exa.sh | 2 | ||||
-rw-r--r-- | test/shell/snapshot-usage.sh | 2 | ||||
-rw-r--r-- | test/shell/vgsplit-stacked.sh | 2 |
13 files changed, 3 insertions, 25 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 1db6fbff3..804200d9e 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -1246,7 +1246,7 @@ devices/default_data_alignment = 1 devices/dir = "$DM_DEV_DIR" devices/filter = "a|.*|" devices/global_filter = [ "a|$DM_DEV_DIR/mapper/${PREFIX}.*pv[0-9_]*$|", "r|.*|" ] -devices/md_component_detection = 0 +devices/md_component_detection = 0 devices/scan = "$DM_DEV_DIR" devices/sysfs_scan = 1 devices/write_cache_state = 0 diff --git a/test/shell/discards-thin.sh b/test/shell/discards-thin.sh index 3564a8793..f27d4c3d1 100644 --- a/test/shell/discards-thin.sh +++ b/test/shell/discards-thin.sh @@ -25,8 +25,6 @@ export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} # aux have_thin 1 1 0 || skip -aux lvmconf 'devices/scan_lvs = 1' - aux prepare_vg 2 64 get_devs diff --git a/test/shell/lvconvert-thin.sh b/test/shell/lvconvert-thin.sh index 731c45bd5..1f8d2edb9 100644 --- a/test/shell/lvconvert-thin.sh +++ b/test/shell/lvconvert-thin.sh @@ -17,8 +17,6 @@ export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - prepare_lvs() { lvremove -f $vg lvcreate -L10M -n $lv1 $vg diff --git a/test/shell/lvcreate-large-raid10.sh b/test/shell/lvcreate-large-raid10.sh index 1ad09aac5..a46be374f 100644 --- a/test/shell/lvcreate-large-raid10.sh +++ b/test/shell/lvcreate-large-raid10.sh @@ -20,7 +20,6 @@ SKIP_WITH_LVMPOLLD=1 # FIXME update test to make something useful on <16T aux can_use_16T || skip aux have_raid 1 3 0 || skip -aux lvmconf 'devices/scan_lvs = 1' aux prepare_vg 5 diff --git a/test/shell/lvcreate-large.sh b/test/shell/lvcreate-large.sh index b1cb0b083..473b0edb3 100644 --- a/test/shell/lvcreate-large.sh +++ b/test/shell/lvcreate-large.sh @@ -17,8 +17,6 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - # FIXME update test to make something useful on <16T aux can_use_16T || skip diff --git a/test/shell/pvcreate-operation-md.sh b/test/shell/pvcreate-operation-md.sh index 11f08877f..4b5193237 100644 --- a/test/shell/pvcreate-operation-md.sh +++ b/test/shell/pvcreate-operation-md.sh @@ -22,8 +22,7 @@ test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \ modprobe raid0 || skip aux lvmconf 'devices/md_component_detection = 1' -aux extend_filter_LVMTEST -aux extend_filter "a|/dev/md.*|" +aux extend_filter_LVMTEST "a|/dev/md|" aux prepare_devs 2 diff --git a/test/shell/pvcreate-restore.sh b/test/shell/pvcreate-restore.sh index 789f45c16..d0b46eb2b 100644 --- a/test/shell/pvcreate-restore.sh +++ b/test/shell/pvcreate-restore.sh @@ -15,8 +15,6 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - aux prepare_vg 4 lvcreate --type snapshot -s -L10 -n $lv1 $vg --virtualsize 2T diff --git a/test/shell/pvremove-thin.sh b/test/shell/pvremove-thin.sh index 84a2a558b..9859b6cad 100644 --- a/test/shell/pvremove-thin.sh +++ b/test/shell/pvremove-thin.sh @@ -18,8 +18,6 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - aux prepare_vg aux have_thin 1 8 0 || skip diff --git a/test/shell/scan-lvs.sh b/test/shell/scan-lvs.sh index 8e8a77d3e..f49bf4df5 100644 --- a/test/shell/scan-lvs.sh +++ b/test/shell/scan-lvs.sh @@ -15,10 +15,9 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest +# Sets 'scan_lvs = 1' aux extend_filter_LVMTEST -aux lvmconf 'devices/scan_lvs = 1' - aux prepare_pvs 1 vgcreate $SHARED $vg1 "$dev1" @@ -44,4 +43,3 @@ lvchange -an "$vg1/$lv1" lvremove "$vg1/$lv1" vgremove $vg1 - diff --git a/test/shell/snapshot-remove-dmsetup.sh b/test/shell/snapshot-remove-dmsetup.sh index a234e5a35..a7925d5d5 100644 --- a/test/shell/snapshot-remove-dmsetup.sh +++ b/test/shell/snapshot-remove-dmsetup.sh @@ -19,8 +19,6 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - which mkfs.ext2 || skip aux prepare_vg 5 diff --git a/test/shell/snapshot-usage-exa.sh b/test/shell/snapshot-usage-exa.sh index f537f0dbf..5d666bf43 100644 --- a/test/shell/snapshot-usage-exa.sh +++ b/test/shell/snapshot-usage-exa.sh @@ -18,8 +18,6 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - aux can_use_16T || skip aux prepare_pvs 1 diff --git a/test/shell/snapshot-usage.sh b/test/shell/snapshot-usage.sh index 5cfdae6e4..bcfa16a3e 100644 --- a/test/shell/snapshot-usage.sh +++ b/test/shell/snapshot-usage.sh @@ -17,8 +17,6 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - MKFS=mkfs.ext2 which $MKFS || skip diff --git a/test/shell/vgsplit-stacked.sh b/test/shell/vgsplit-stacked.sh index 09af3f76c..331ee8e86 100644 --- a/test/shell/vgsplit-stacked.sh +++ b/test/shell/vgsplit-stacked.sh @@ -15,8 +15,6 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux lvmconf 'devices/scan_lvs = 1' - aux extend_filter_LVMTEST aux prepare_pvs 3 |