From a6d006d9db033e8251fd58848f8876b3e3d0fe90 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Tue, 30 Sep 2014 17:08:34 +0200 Subject: test: Make lvm-wrapper available in the installed testsuite, too. --- test/lib/lvm-wrapper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/lib/lvm-wrapper.sh') diff --git a/test/lib/lvm-wrapper.sh b/test/lib/lvm-wrapper.sh index 082c6405b..013bc1399 100644 --- a/test/lib/lvm-wrapper.sh +++ b/test/lib/lvm-wrapper.sh @@ -36,4 +36,9 @@ if test -n "$LVM_VALGRIND"; then fi # the exec is important, because otherwise fatal signals inside "not" go unnoticed -exec $RUN_VALGRIND "$abs_top_builddir/tools/lvm" $CMD "$@" +if test -n "$abs_top_builddir"; then + exec $RUN_DBG "$abs_top_builddir/tools/lvm" $CMD "$@" +else # we are testing the lvm on $PATH + PATH=`echo $PATH | sed -e s,[^:]*lvm2-testsuite[^:]*:,,g` + exec $RUN_DBG lvm $CMD "$@" +fi -- cgit v1.2.1