changeset 10020:d7c23f4a14c7

run-tests: install data files correctly In 68964567e406 we began installing some data files in PREFIX/share. When preparing to run the tests, run-tests.py uses --home="" in order to work around home being set in a ~/.pydistutils.cfg file. This somehow overwrites the --prefix option. The result was that the share/ directory was installed in the top of the Mercurial source tree.
author Martin Geisler <mg@lazybytes.net>
date Sat, 05 Dec 2009 23:16:09 +0100
parents 4e3a8f3e9dc2
children 0022f5c5459e
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Dec 06 23:28:49 2009 +0100
+++ b/tests/run-tests.py	Sat Dec 05 23:16:09 2009 +0100
@@ -316,8 +316,8 @@
         nohome = ''
     cmd = ('%s setup.py %s clean --all'
            ' install --force --prefix="%s" --install-lib="%s"'
-           ' --install-scripts="%s" %s >%s 2>&1'
-           % (sys.executable, pure, INST, PYTHONDIR, BINDIR, nohome,
+           ' --install-scripts="%s" --install-data="%s" %s >%s 2>&1'
+           % (sys.executable, pure, INST, PYTHONDIR, BINDIR, INST, nohome,
               installerrs))
     vlog("# Running", cmd)
     if os.system(cmd) == 0: