docs/tutorial/testlib/pythonpath.sh
author Anton Shestakov <av6@dwimlabs.net>
Thu, 07 Mar 2019 19:13:45 +0800
changeset 4432 5da1d162ad50
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
stack: rename unstable -> orphan That's the only instability stack can currently show, but it's about to show more and showing "unstable" for one type of instability just isn't good.

# 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