comparison tests/testlib/pythonpath.sh @ 4336:33fc61e5e119 stable

tests: remove unused variable and needless subshell in testlib/pythonpath.sh
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 06 Jan 2019 00:27:54 +0800
parents 9980df8eda98
children 277b45cf0dda
comparison
equal deleted inserted replaced
4334:24f90069b772 4336:33fc61e5e119
1 # utility to setup pythonpath to point into the tested repository 1 # utility to setup pythonpath to point into the tested repository
2 2
3 export SRCDIR="`dirname $TESTDIR`" 3 export SRCDIR="`dirname $TESTDIR`"
4 if [ -n "$PYTHONPATH" ]; then 4 if [ -n "$PYTHONPATH" ]; then
5 export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH 5 export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
6 osname="`uname -o`" 6 if uname -o | grep -q Msys; then
7 if (uname -o | grep -q Msys); then
8 export PYTHONPATH="$SRCDIR;$PYTHONPATH" 7 export PYTHONPATH="$SRCDIR;$PYTHONPATH"
9 else 8 else
10 export PYTHONPATH=$SRCDIR:$PYTHONPATH 9 export PYTHONPATH=$SRCDIR:$PYTHONPATH
11 fi 10 fi
12 else 11 else