tests/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sun, 21 May 2017 13:55:09 +0200
branchstable
changeset 2459 5e6fc802bc8a
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
obshashrange: add an option to disable local cache warming The cache still a bit too volatile an costly to update. This offer a way for developer working copy to only compute it when used.

# utility to setup pythonpath to point into the tested repository

export SRCDIR=`dirname $TESTDIR`
if [ -n "$PYTHONPATH" ]; then
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
    export PYTHONPATH=$SRCDIR:$PYTHONPATH
else
    export PYTHONPATH=$SRCDIR
fi