tests/testlib/pythonpath.sh
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 28 Mar 2019 14:54:46 -0700
changeset 4456 b0d755a95f6c
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
tests: add tests for divergence resolution with split+amend As suggested by Boris Feld. G: changed tests/test-evolve-phase-divergence.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