summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-04-30 13:57:54 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-05-01 15:07:58 +0200
commitc18e969e30a44ec392f40414e1f134ff70cecb38 (patch)
tree6adccfd6f1b8ebb122c25788546643106d6e5894
parent0eea780bceccb5e1693429529f292b2fb36afadd (diff)
downloadlvm2-c18e969e30a44ec392f40414e1f134ff70cecb38.tar.gz
tests: move conf preparing
If the test in the middle is restarting lvmetad avoid conf regenerating.
-rw-r--r--test/lib/aux.sh2
-rw-r--r--test/lib/inittest.sh1
2 files changed, 1 insertions, 2 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index c6b05f89d..e20b6b054 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -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"
diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh
index dd4f0607d..d5c80f413 100644
--- a/test/lib/inittest.sh
+++ b/test/lib/inittest.sh
@@ -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