tests/testlib/pythonpath.sh
author Sushil khanchi <sushilkhanchi97@gmail.com>
Thu, 17 Jan 2019 16:20:35 +0530
changeset 4343 11b726506204
parent 4332 9980df8eda98
child 4336 33fc61e5e119
permissions -rw-r--r--
evolve: add test which shows orphan-merge resolution can result to crash It happens when there are still some revisions to evolve after evoluiton of a orphan-merge. And the reason behind crash is that `lastsolved` is not being updated and contain a wrong value which is now hidden. Next patch will fix this problem.

# utility to setup pythonpath to point into the tested repository

export SRCDIR="`dirname $TESTDIR`"
if [ -n "$PYTHONPATH" ]; then
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
    osname="`uname -o`"
    if (uname -o | grep -q Msys); then
        export PYTHONPATH="$SRCDIR;$PYTHONPATH"
    else
        export PYTHONPATH=$SRCDIR:$PYTHONPATH
    fi
else
    export PYTHONPATH=$SRCDIR
fi