# HG changeset patch # User Brodie Rao # Date 2010-03-05 22:38:02 # Node ID 181cbb23572ee71f27d4238ab71c60f25a87516b # Parent b7e528212828b38c788cf8363282c9b70d7650c1 test-extension: fix disabled extension tests for run-tests.py --local One test that requires inserting a broken extension into hgext does this by modifying PYTHONPATH. This doesn't work when run with --local because the 'hg' script being used is in the same directory as the local hgext. Instead of modifying PYTHONPATH, a secondary extension is enabled using --config that inserts the dummy hgext at the beginning of sys.path, before the script's path. diff --git a/tests/test-extension b/tests/test-extension --- a/tests/test-extension +++ b/tests/test-extension @@ -168,12 +168,13 @@ echo > hgext/__init__.py cat > hgext/broken.py < /dev/null -PYTHONPATH="$TMPPYTHONPATH" -export PYTHONPATH +cat > path.py < /dev/null exit 0