view tests/testlib/pythonpath.sh @ 3876:c464abfd7f9d

tests: add a test to demonstrate issue5925 The issue will be fixed in next patch.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 08 Jul 2018 22:50:16 +0530
parents 994d81caec68
children 9980df8eda98
line wrap: on
line source

# 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