tests/testlib/pythonpath.sh
author Martin von Zweigbergk <martinvonz@google.com>
Tue, 23 Apr 2019 09:31:32 -0700
changeset 4597 f3236cd49ab8
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
evolve: clean up progress bar also when using -r It looks like 1fe3da0b4601 (evolve: add --rev option to the evolve command, 2015-05-05) forgot to update the "showprogress" variable.

# 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