tests/testlib/pythonpath.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 05 Oct 2017 18:13:52 +0530
changeset 3037 5c8d5f980f49
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
tests: add a new test for testing changing or clearing topics test-topic.t is getting bigger and bigger. This patch introduces a new test which includes test for clearing and changing topics. Since the tests are moved to a new file, this patch, removes those tests from test-topic.t also.

# 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