master - test: Fix checks to skip lvmdbusd tests
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c1d376b1abdb6b6a2410a5372a3a76748c1daa98 Commit: c1d376b1abdb6b6a2410a5372a3a76748c1daa98 Parent: c6d383a6da5cd7f5acddb314e1419243447e7be8 Author: Marian Csontos <[email protected]> AuthorDate: Wed Mar 23 11:45:21 2016 +0100 Committer: Marian Csontos <[email protected]> CommitterDate: Wed Mar 23 11:58:48 2016 +0100
test: Fix checks to skip lvmdbusd tests
The executable is always present in the tree, need to check the runtime dependencies.
--- test/lib/aux.sh | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
test/lib/aux.sh +4 -2
@@ -311,10 +311,12 @@ prepare_lvmdbusd() { echo ok # skip if we don't have our own lvmdbusd... - # TODO: lvmdbusd is not in PATH - #(which lvmdbusd 2>/dev/null | grep "$abs_builddir") || skip + # NOTE: this is always present - additional checks are needed: [[ -x $abs_top_builddir/daemons/lvmdbusd/lvmdbusd ]] || skip + which python3 >/dev/null || skip "Missing python3" + python3 -c "import pyudev, dbus, gi.repository" || skip "Missing python modules" + kill_sleep_kill_ LOCAL_LVMDBUSD 0 echo "preparing lvmdbusd..."