##// END OF EJS Templates
test-extension: fix disabled extension tests for run-tests.py --local...
Brodie Rao -
r10669:181cbb23 stable
parent child Browse files
Show More
@@ -168,12 +168,13 b' echo > hgext/__init__.py'
168 cat > hgext/broken.py <<EOF
168 cat > hgext/broken.py <<EOF
169 "broken extension'
169 "broken extension'
170 EOF
170 EOF
171 TMPPYTHONPATH="$PYTHONPATH"
171 cat > path.py <<EOF
172 PYTHONPATH="`pwd`:$PYTHONPATH"
172 import os, sys
173 export PYTHONPATH
173 sys.path.insert(0, os.environ['HGEXTPATH'])
174 hg help broken
174 EOF
175 hg help foo > /dev/null
175 HGEXTPATH=`pwd`
176 PYTHONPATH="$TMPPYTHONPATH"
176 export HGEXTPATH
177 export PYTHONPATH
177 hg --config extensions.path=./path.py help broken
178 hg --config extensions.path=./path.py help foo > /dev/null
178
179
179 exit 0
180 exit 0
General Comments 0
You need to be logged in to leave comments. Login now