]> sourceware.org Git - lvm2.git/commitdiff
test: Fix testing of installed lvmdbusd
authorMarian Csontos <mcsontos@redhat.com>
Fri, 1 Apr 2016 07:28:31 +0000 (09:28 +0200)
committerMarian Csontos <mcsontos@redhat.com>
Fri, 8 Apr 2016 14:26:25 +0000 (16:26 +0200)
If lvmdbusd is missing expression triggers ERR trap instead of skipping
the test.

test/lib/aux.sh

index c8985ede06b0e442c0f93fd47cfa0de7ca410f2c..3a44ae6fdadd3b305a96382c83934c26fc5379d4 100644 (file)
@@ -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"
 
This page took 0.038249 seconds and 5 git commands to generate.