From d2225af67eeef656c14ca2b75ddea6b9c8f240fb Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 16 Jul 2014 14:28:00 +0200 Subject: [PATCH] remove hard-coded path --- tests/shared.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/shared.sh b/tests/shared.sh index 8d79c651..b509351a 100644 --- a/tests/shared.sh +++ b/tests/shared.sh @@ -3,7 +3,11 @@ RECOLL_TESTDATA=/home/dockes/projets/fulltext/testrecoll -RECOLL_CONFDIR=/home/dockes/projets/fulltext/recoll/tests/config +# All source'rs should set topdir as a relative path from their location to +# this directory +topdir=${topdir:-.} + +RECOLL_CONFDIR=$topdir/config/ export RECOLL_CONFDIR ECHON="/bin/echo -n"