tests/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 14 Nov 2019 12:03:52 +0100
branchstable
changeset 4924 cf1c67449fa7
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
heptapod-ci: let the number of CPU to be picked automatically We now have a larger, bigger machine to run the tests. Let's let run-tests.py pick the number of concurrent jobs.

# 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