tests/testlib/pythonpath.sh
author Anton Shestakov <av6@dwimlabs.net>
Fri, 17 Jan 2020 20:40:24 +0700
branchstable
changeset 5095 2fcaee044a8c
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
evolve: provide branch argument to overlayworkingctx.tomemctx() This is related to upstream 2ecbc4ec87d8 and fixes test-evolve.t.

# utility to setup pythonpath to point into the tested repository

export SRCDIR="`dirname $TESTDIR`"
if [ -n "$PYTHONPATH" ]; then
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
    if uname -o | grep -q Msys; then
        export PYTHONPATH="$SRCDIR;$PYTHONPATH"
    else
        export PYTHONPATH=$SRCDIR:$PYTHONPATH
    fi
else
    export PYTHONPATH=$SRCDIR
fi