Skip to contentSkip to conversation

master - tests: move conf preparing

PATCH Zdenek Kabelac 1 participant 1 message May 1, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c18e969e30a44ec392f40414e1f134ff70cecb38
Commit:        c18e969e30a44ec392f40414e1f134ff70cecb38
Parent:        0eea780bceccb5e1693429529f292b2fb36afadd
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Apr 30 13:57:54 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri May 1 15:07:58 2015 +0200

tests: move conf preparing

If the test in the middle is restarting lvmetad
avoid conf regenerating.

---
 test/lib/aux.sh      |    2 --
 test/lib/inittest.sh |    1 +
 2 files changed, 1 insertions(+), 2 deletions(-)
test/lib/aux.sh +0 -2
index c6b05f8..e20b6b0 100644
@@ -90,8 +90,6 @@ prepare_lvmetad() {
 	if test -z "${installed_testsuite+varset}"; then
 		(which lvmetad 2>/dev/null | grep -q "$abs_builddir") || skip
 	fi
-	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/lib/inittest.sh +1 -0
index dd4f060..d5c80f4 100644
@@ -92,6 +92,7 @@ echo "@PREFIX=$PREFIX"
 if test -n "$LVM_TEST_LVMETAD" ; then
 	export LVM_LVMETAD_SOCKET="$TESTDIR/lvmetad.socket"
 	export LVM_LVMETAD_PIDFILE="$TESTDIR/lvmetad.pid"
+	aux lvmconf "global/use_lvmetad = 1" "devices/md_component_detection = 0"
 	aux prepare_lvmetad
 else
 	# lvmetad prepares its own lvmconf