From 30e3aa20387f1cd2b33d96052f5fddb94d3d55cd Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sun, 12 Feb 2012 21:46:52 +0100 Subject: [PATCH] Use the WEBOOB_BACKENDS variable if it exists --- tools/run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/run_tests.sh b/tools/run_tests.sh index 2af08172..9d217b77 100755 --- a/tools/run_tests.sh +++ b/tools/run_tests.sh @@ -12,11 +12,12 @@ if [ -z "${WEBOOB_WORKDIR}" ]; then [ -d "${XDG_CONFIG_HOME}/weboob" ] && WEBOOB_WORKDIR="${XDG_CONFIG_HOME}/weboob" fi [ -z "${TMPDIR}" ] && TMPDIR="/tmp" +[ -z "${WEBOOB_BACKENDS}" ] && WEBOOB_BACKENDS="${WEBOOB_WORKDIR}/backends" # do not allow undefined variables anymore set -u WEBOOB_TMPDIR=$(mktemp -d "${TMPDIR}/weboob_test.XXXXX") -cp "${WEBOOB_WORKDIR}/backends" "${WEBOOB_TMPDIR}/" +cp "${WEBOOB_BACKENDS}" "${WEBOOB_TMPDIR}/" # path to sources WEBOOB_DIR=$(readlink -e $(dirname $0)/..)