Skip to contentSkip to conversation

master - tests: use single lvmconf call

PATCH Zdenek Kabelac 1 participant 1 message Apr 8, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ebde60beab2d3421892a37780eacf7ed1459d8b9
Commit:        ebde60beab2d3421892a37780eacf7ed1459d8b9
Parent:        a5b34f0f1bf38807bdbed2855516f9b2ceebf7b7
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Apr 8 22:44:16 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Apr 8 23:19:37 2015 +0200

tests: use single lvmconf call

---
 test/lib/aux.sh                         |    4 +-
 test/shell/lvconvert-repair-policy.sh   |    4 +-
 test/shell/lvconvert-repair-raid.sh     |    4 +-
 test/shell/lvconvert-repair-replace.sh  |    4 +-
 test/shell/lvconvert-repair-snapshot.sh |    4 +-
 test/shell/lvcreate-mirror.sh           |    4 +-
 test/shell/lvcreate-pvtags.sh           |    4 +-
 test/shell/pvcreate-bootloaderarea.sh   |    3 +-
 test/shell/system_id.sh                 |  100 +++++++++++++++---------------
 9 files changed, 65 insertions(+), 66 deletions(-)
test/lib/aux.sh +2 -2
index 3232074..37a9a9a 100644
@@ -85,8 +85,8 @@ prepare_lvmetad() {
 	# skip if we don't have our own lvmetad...
 	(which lvmetad 2>/dev/null | grep "$abs_builddir") || skip
 
-	lvmconf "global/use_lvmetad = 1"
-	lvmconf "devices/md_component_detection = 0"
+	lvmconf "global/use_lvmetad = 1" \
+		"devices/md_component_detection = 0"
 
 	local run_valgrind=
 	test "${LVM_VALGRIND_LVMETAD:-0}" -eq 0 || run_valgrind="run_valgrind"
test/shell/lvconvert-repair-policy.sh +2 -2
index ace52fc..96a69d0 100644
@@ -12,8 +12,8 @@
 . lib/inittest
 
 aux prepare_vg 4
-aux lvmconf 'allocation/maximise_cling = 0'
-aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+aux lvmconf 'allocation/maximise_cling = 0' \
+	    'allocation/mirror_logs_require_separate_pvs = 1'
 
 # Clean-up and create a 2-way mirror, where the the
 # leg devices are always on $dev[12] and the log
test/shell/lvconvert-repair-raid.sh +2 -2
index 4f0175a..6b1e51f 100644
@@ -14,8 +14,8 @@
 aux have_raid 1 3 0 || skip
 aux raid456_replace_works || skip
 
-aux lvmconf 'allocation/maximise_cling = 0'
-aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+aux lvmconf 'allocation/maximise_cling = 0' \
+	    'allocation/mirror_logs_require_separate_pvs = 1'
 
 aux prepare_vg 8
 
test/shell/lvconvert-repair-replace.sh +2 -2
index 3c0dc53..8a3567c 100644
@@ -12,8 +12,8 @@
 . lib/inittest
 
 aux prepare_vg 6
-aux lvmconf 'allocation/maximise_cling = 0'
-aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+aux lvmconf 'allocation/maximise_cling = 0' \
+	    'allocation/mirror_logs_require_separate_pvs = 1'
 
 # 3-way, disk log
 # multiple failures, full replace
test/shell/lvconvert-repair-snapshot.sh +2 -2
index 473d561..a0c0399 100644
@@ -12,8 +12,8 @@
 . lib/inittest
 
 aux prepare_vg 5
-aux lvmconf 'allocation/maximise_cling = 0'
-aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+aux lvmconf 'allocation/maximise_cling = 0' \
+	    'allocation/mirror_logs_require_separate_pvs = 1'
 
 lvcreate -aey --type mirror -m 3 --ignoremonitoring -L 2M -n 4way $vg "$dev1" "$dev2" "$dev3" "$dev4" "$dev5":0
 lvcreate -s $vg/4way -L 2M -n snap
test/shell/lvcreate-mirror.sh +2 -2
index a151126..f62bee7 100644
@@ -11,8 +11,8 @@
 
 . lib/inittest
 aux prepare_vg 5 80
-aux lvmconf 'allocation/maximise_cling = 0'
-aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+aux lvmconf 'allocation/maximise_cling = 0' \
+	    'allocation/mirror_logs_require_separate_pvs = 1'
 
 # 2-way mirror with corelog, 2 PVs
 lvcreate -aey -l2 --type mirror -m1 --mirrorlog core -n $lv1 $vg "$dev1" "$dev2"
test/shell/lvcreate-pvtags.sh +2 -2
index b7c814f..6bfb55b 100644
@@ -12,8 +12,8 @@
 . lib/inittest
 
 aux prepare_pvs 3
-aux lvmconf 'allocation/maximise_cling = 0'
-aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+aux lvmconf 'allocation/maximise_cling = 0' \
+	    'allocation/mirror_logs_require_separate_pvs = 1'
 
 # not required, just testing
 aux pvcreate --metadatacopies 0 "$dev1"
test/shell/pvcreate-bootloaderarea.sh +1 -2
index 53a9839..6dd45f5 100644
@@ -14,8 +14,7 @@ test_description='Test pvcreate bootloader area support'
 . lib/inittest
 
 aux prepare_devs 1
-aux lvmconf 'global/suffix=0'
-aux lvmconf 'global/units="b"'
+aux lvmconf 'global/suffix=0' 'global/units="b"'
 
 #COMM 'pvcreate sets/aligns bootloader area correctly'
 pvcreate --dataalignment 262144b --bootloaderareasize 614400b "$dev1"
test/shell/system_id.sh +50 -50

250 lines not on this page · raw message