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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2046
994d81caec68 test: update test to check for various way to import the serveronly things
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     1
# utility to setup pythonpath to point into the tested repository
994d81caec68 test: update test to check for various way to import the serveronly things
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     2
4332
9980df8eda98 tests: fix PYTHONPATH manipulation on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 2046
diff changeset
     3
export SRCDIR="`dirname $TESTDIR`"
2046
994d81caec68 test: update test to check for various way to import the serveronly things
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     4
if [ -n "$PYTHONPATH" ]; then
994d81caec68 test: update test to check for various way to import the serveronly things
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     5
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
4332
9980df8eda98 tests: fix PYTHONPATH manipulation on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 2046
diff changeset
     6
    osname="`uname -o`"
9980df8eda98 tests: fix PYTHONPATH manipulation on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 2046
diff changeset
     7
    if (uname -o | grep -q Msys); then
9980df8eda98 tests: fix PYTHONPATH manipulation on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 2046
diff changeset
     8
        export PYTHONPATH="$SRCDIR;$PYTHONPATH"
9980df8eda98 tests: fix PYTHONPATH manipulation on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 2046
diff changeset
     9
    else
9980df8eda98 tests: fix PYTHONPATH manipulation on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 2046
diff changeset
    10
        export PYTHONPATH=$SRCDIR:$PYTHONPATH
9980df8eda98 tests: fix PYTHONPATH manipulation on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 2046
diff changeset
    11
    fi
2046
994d81caec68 test: update test to check for various way to import the serveronly things
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    12
else
994d81caec68 test: update test to check for various way to import the serveronly things
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    13
    export PYTHONPATH=$SRCDIR
994d81caec68 test: update test to check for various way to import the serveronly things
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    14
fi