summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2016-04-01 09:28:31 +0200
committerMarian Csontos <mcsontos@redhat.com>2016-04-08 16:26:25 +0200
commite6768997e192e26aaf091b6ed2700a3391f178b5 (patch)
tree0ff8beb12b010451412481a7686ff9eb5aa53411
parented0c779bd120e7c36cb7f100df3c6edc98e8cc52 (diff)
downloadlvm2-e6768997e192e26aaf091b6ed2700a3391f178b5.tar.gz
test: Fix testing of installed lvmdbusd
If lvmdbusd is missing expression triggers ERR trap instead of skipping the test.
-rw-r--r--test/lib/aux.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index c8985ede0..3a44ae6fd 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"