# HG changeset patch # User Brendan Cully # Date 1188431421 25200 # Node ID b817d17c7ee52378b23bfdba59417c322c32aef9 # Parent d59ed18ec2d07c9def9db1e15859c1d47cc74416 Make run-tests.py work when invoked outside of tests. This makes it usable for unbundled extensions. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -134,7 +134,8 @@ def install_hg(): vlog("# Performing temporary installation of HG") installerrs = os.path.join("tests", "install.err") - os.chdir("..") # Get back to hg root + # Run installer in hg root + os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..')) cmd = ('%s setup.py clean --all' ' install --force --home="%s" --install-lib="%s"' ' --install-scripts="%s" >%s 2>&1'