Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2182:4e35843b2683 | 2183:a56fc34d6e23 |
---|---|
67 def install_hg(): | 67 def install_hg(): |
68 vlog("# Performing temporary installation of HG") | 68 vlog("# Performing temporary installation of HG") |
69 installerrs = os.path.join("tests", "install.err") | 69 installerrs = os.path.join("tests", "install.err") |
70 | 70 |
71 os.chdir("..") # Get back to hg root | 71 os.chdir("..") # Get back to hg root |
72 cmd = '%s setup.py install --home="%s" --install-lib="%s" >%s 2>&1' % \ | 72 cmd = ('%s setup.py clean --all' |
73 (sys.executable, INST, PYTHONDIR, installerrs) | 73 ' install --force --home="%s" --install-lib="%s" >%s 2>&1' |
74 % (sys.executable, INST, PYTHONDIR, installerrs)) | |
74 vlog("# Running", cmd) | 75 vlog("# Running", cmd) |
75 if os.system(cmd) == 0: | 76 if os.system(cmd) == 0: |
76 if not verbose: | 77 if not verbose: |
77 os.remove(installerrs) | 78 os.remove(installerrs) |
78 else: | 79 else: |