master - tests: avoid dup of lvm.conf
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c969e05aabb00b400d24e44c09c720f1cdebb351 Commit: c969e05aabb00b400d24e44c09c720f1cdebb351 Parent: ee6fc17663c777f7276c56fd224fd3cecc0f77e4 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Apr 14 09:47:14 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Apr 14 10:11:35 2015 +0200
tests: avoid dup of lvm.conf
When running lvmetad test - avoid duplicate create of lvm.conf Also as lvmetad cannot be used with cluster make it as 2 code paths.
--- test/lib/inittest.sh | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
test/lib/inittest.sh +6 -4
@@ -86,13 +86,15 @@ prepare_test_vars test -n "$BASH" && set -eE -o pipefail -aux lvmconf -aux prepare_clvmd -test -n "$LVM_TEST_LVMETAD" && { +if test -n "$LVM_TEST_LVMETAD" ; then export LVM_LVMETAD_SOCKET="$TESTDIR/lvmetad.socket" export LVM_LVMETAD_PIDFILE="$TESTDIR/lvmetad.pid" aux prepare_lvmetad -} +else + # lvmetad prepares its own lvmconf + aux lvmconf + aux prepare_clvmd +fi # Vars for harness echo "@TESTDIR=$TESTDIR"