diff options
author | Marian Csontos <mcsontos@redhat.com> | 2017-12-12 14:18:27 +0100 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2017-12-12 14:19:22 +0100 |
commit | 15ccea71116f4c0a587aaa0ed25dc1d8d98c0c7f (patch) | |
tree | 6871728040fc0af6d9b4c334a368375624830157 | |
parent | c5ef76bf27337406d48990acbfdaa869fd30f47b (diff) | |
download | lvm2-15ccea71116f4c0a587aaa0ed25dc1d8d98c0c7f.tar.gz |
test: Fix condition when detecting lvmdbusd
-rw-r--r-- | test/lib/aux.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index a436f8431..6bc7bd47e 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -324,10 +324,13 @@ prepare_lvmdbusd() { echo ok # skip if we don't have our own lvmdbusd... + echo -n "## find lvmdbusd to use..." if test -z "${installed_testsuite+varset}"; then # NOTE: this is always present - additional checks are needed: daemon="$abs_top_builddir/daemons/lvmdbusd/lvmdbusd" - if ! test -x "$daemon" && chmod ugo+x "$daemon"; then + if test -x "$daemon" || chmod ugo+x "$daemon"; then + echo "$daemon" + else echo "Failed to make '$daemon' executable">&2 return 1 fi @@ -335,6 +338,7 @@ prepare_lvmdbusd() { export PYTHONPATH="$abs_top_builddir/daemons" else daemon=$(which lvmdbusd || :) + echo "$daemon" fi test -x "$daemon" || skip "The lvmdbusd daemon is missing" which python3 >/dev/null || skip "Missing python3" |