Mercurial > public > mercurial-scm > hg
diff tests/run-tests.py @ 2183:a56fc34d6e23
Always clean the build directory before installing for running the tests.
Otherwise tests might run an old version, when e.g. commands.py.orig is
moved back after a revert (old timestamp).
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 03 May 2006 10:45:20 +0200 |
parents | eb1ed410aa34 |
children | 6f76a479ae51 |
line wrap: on
line diff
--- a/tests/run-tests.py Wed May 03 10:18:52 2006 +0200 +++ b/tests/run-tests.py Wed May 03 10:45:20 2006 +0200 @@ -69,8 +69,9 @@ installerrs = os.path.join("tests", "install.err") os.chdir("..") # Get back to hg root - cmd = '%s setup.py install --home="%s" --install-lib="%s" >%s 2>&1' % \ - (sys.executable, INST, PYTHONDIR, installerrs) + cmd = ('%s setup.py clean --all' + ' install --force --home="%s" --install-lib="%s" >%s 2>&1' + % (sys.executable, INST, PYTHONDIR, installerrs)) vlog("# Running", cmd) if os.system(cmd) == 0: if not verbose: