# HG changeset patch # User Thomas Arendsen Hein # Date 1146645920 -7200 # Node ID a56fc34d6e238f1abfbd27df8ff56f6b101e34dd # Parent 4e35843b2683307dd162f8e759be0677ebc73496 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). diff -r 4e35843b2683 -r a56fc34d6e23 tests/run-tests --- a/tests/run-tests Wed May 03 10:18:52 2006 +0200 +++ b/tests/run-tests Wed May 03 10:45:20 2006 +0200 @@ -69,7 +69,7 @@ INST="$HGTMP/install" PYTHONDIR="$INST/lib/python" cd .. -if ${PYTHON-python} setup.py install --home="$INST" \ +if ${PYTHON-python} setup.py clean --all install --force --home="$INST" \ --install-lib="$PYTHONDIR" > tests/install.err 2>&1 then rm tests/install.err diff -r 4e35843b2683 -r a56fc34d6e23 tests/run-tests.py --- 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: