tests/testlib/pythonpath.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Mon, 22 Jan 2018 17:29:56 +0530
changeset 3477 713e26a647f5
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
evolve: create a state object in all case Let's create a state object even when we are not in the continue mode. This will help us passing the state object to rest of the functions.

# 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