From 09d11ca3d81b6a1ffc9145caf9b32022e6c26925 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Wed, 7 Apr 2010 21:38:01 +0000 Subject: [PATCH] Don't forget to cd into $TESTDIR in test-utils.sh / prepare_testdir. --- test/test-utils.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-utils.sh b/test/test-utils.sh index 5deb07b85..be1778cd8 100644 --- a/test/test-utils.sh +++ b/test/test-utils.sh @@ -86,6 +86,8 @@ prepare_testroot() { export DM_DEV_DIR=$TESTDIR/dev mkdir $LVM_SYSTEM_DIR $DM_DEV_DIR $DM_DEV_DIR/mapper $TESTDIR/lib + cd $TESTDIR + for i in `find $abs_top_builddir/daemons/dmeventd/plugins/ -name \*.so`; do echo Setting up symlink from $i to $TESTDIR/lib ln -s $i $TESTDIR/lib @@ -381,7 +383,6 @@ prepare() { prepare_testroot prepare_lvmconf prepare_clvmd - source ./lvm-utils.sh } LANG=C @@ -390,6 +391,7 @@ TZ=UTC unset CDPATH . ./init.sh || { echo >&2 you must run make first; exit 1; } +. ./lvm-utils.sh set -vexE -o pipefail aux prepare