run-tests: move build/ directory to HGTMP stable
authorMartin Geisler <mg@lazybytes.net>
Sun, 26 Sep 2010 22:22:59 +0200
branchstable
changeset 822 842e2c76e64b
parent 821 04cb1661adc8
child 823 ab2ba4e79bed
run-tests: move build/ directory to HGTMP Before, running a test would give you a build/ directory in the root of your Mercurial source tree. The directory had a full copy of the the source, so a grep in '**/*.py' would find files inside build/. [ original upstream description ]
tests/run-tests.py
--- a/tests/run-tests.py	Fri Oct 08 20:12:40 2010 -0500
+++ b/tests/run-tests.py	Sun Sep 26 22:22:59 2010 +0200
@@ -362,10 +362,11 @@
         # when they happen.
         nohome = ''
     cmd = ('%s setup.py %s clean --all'
+           ' build --build-base="%s"'
            ' install --force --prefix="%s" --install-lib="%s"'
            ' --install-scripts="%s" %s >%s 2>&1'
-           % (sys.executable, pure, INST, PYTHONDIR, BINDIR, nohome,
-              installerrs))
+           % (sys.executable, pure, os.path.join(HGTMP, "build"),
+              INST, PYTHONDIR, BINDIR, nohome, installerrs))
     vlog("# Running", cmd)
     if os.system(cmd) == 0:
         if not options.verbose: