Skip to contentSkip to conversation

master - test: Fix testing of installed lvmdbusd

PATCH Marian Csontos 1 participant 1 message Apr 8, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e6768997e192e26aaf091b6ed2700a3391f178b5
Commit:        e6768997e192e26aaf091b6ed2700a3391f178b5
Parent:        ed0c779bd120e7c36cb7f100df3c6edc98e8cc52
Author:        Marian Csontos <[email protected]>
AuthorDate:    Fri Apr 1 09:28:31 2016 +0200
Committer:     Marian Csontos <[email protected]>
CommitterDate: Fri Apr 8 16:26:25 2016 +0200

test: Fix testing of installed lvmdbusd

If lvmdbusd is missing expression triggers ERR trap instead of skipping the test.

---
 test/lib/aux.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/aux.sh +1 -1
index c8985ed..3a44ae6 100644
@@ -321,7 +321,7 @@ prepare_lvmdbusd() {
 		# Setup the python path so we can run
 		export PYTHONPATH=$abs_top_builddir/daemons
 	else
-		daemon="$(which lvmdbusd)"
+		daemon="$(which lvmdbusd || :)"
 	fi
 	[[ -n $daemon && -x $daemon ]] || skip "The daemon is missing"