1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-30 01:47:56 +03:00

test: Fix failures due to undefined abs_top_builddir.

This commit is contained in:
Petr Rockai 2014-09-15 00:19:53 +02:00
parent c6f9c46223
commit bd0806e1f5
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,8 @@
lvm version
test -n "$abs_top_builddir" || skip
v=$abs_top_builddir/lib/misc/lvm-version.h
sed -n "/#define LVM_VERSION ./s///p" "$v" | sed "s/ .*//" > expected

View File

@ -43,7 +43,10 @@ not pgrep dmeventd
rm LOCAL_DMEVENTD
# set dmeventd path
aux lvmconf "dmeventd/executable=\"$abs_top_builddir/test/lib/dmeventd\""
if test -n "$abs_top_builddir"; then
aux lvmconf "dmeventd/executable=\"$abs_top_builddir/test/lib/dmeventd\""
fi
lvchange --monitor y --verbose $vg/3way 2>&1 | tee lvchange.out
pgrep dmeventd >LOCAL_DMEVENTD
not grep 'already monitored' lvchange.out