All of lore.kernel.org
 help / color / mirror / Atom feed
* master - test: Fix testing of installed lvmdbusd
@ 2016-04-08 14:26 Marian Csontos
  0 siblings, 0 replies; only message in thread
From: Marian Csontos @ 2016-04-08 14:26 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e6768997e192e26aaf091b6ed2700a3391f178b5
Commit:        e6768997e192e26aaf091b6ed2700a3391f178b5
Parent:        ed0c779bd120e7c36cb7f100df3c6edc98e8cc52
Author:        Marian Csontos <mcsontos@redhat.com>
AuthorDate:    Fri Apr 1 09:28:31 2016 +0200
Committer:     Marian Csontos <mcsontos@redhat.com>
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(-)

diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index c8985ed..3a44ae6 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -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"
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-08 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-08 14:26 master - test: Fix testing of installed lvmdbusd Marian Csontos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.