Mercurial > hg
diff tests/run-tests.py @ 9939:251812d34c08 stable
Merge stable heads
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 25 Nov 2009 21:54:18 -0600 |
parents | a0680daed7b2 e3237af51def |
children | 2d0f1cde217b d4a62b6d4a58 |
line wrap: on
line diff
--- a/tests/run-tests.py Tue Nov 24 13:55:13 2009 -0200 +++ b/tests/run-tests.py Wed Nov 25 21:54:18 2009 -0600 @@ -31,8 +31,10 @@ # ./run-tests.py -j2 --local test-s* # 7) parallel, coverage, temp install: # ./run-tests.py -j2 -c test-s* # currently broken -# 8) parallel, coverage, local install +# 8) parallel, coverage, local install: # ./run-tests.py -j2 -c --local test-s* # unsupported (and broken) +# 9) parallel, custom tmp dir: +# ./run-tests.py -j2 --tmpdir /tmp/myhgtests # # (You could use any subset of the tests: test-s* happens to match # enough that it's worth doing parallel runs, few enough that it @@ -639,6 +641,8 @@ continue rfd, wfd = os.pipe() childopts = ['--child=%d' % wfd, '--port=%d' % (options.port + j * 3)] + childtmp = os.path.join(HGTMP, 'child%d' % j) + childopts += ['--tmpdir', childtmp] cmdline = [PYTHON, sys.argv[0]] + opts + childopts + job vlog(' '.join(cmdline)) fps[os.spawnvp(os.P_NOWAIT, cmdline[0], cmdline)] = os.fdopen(rfd, 'r') @@ -781,6 +785,7 @@ os.environ['TZ'] = 'GMT' os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" os.environ['CDPATH'] = '' + os.environ['COLUMNS'] = '80' global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE TESTDIR = os.environ["TESTDIR"] = os.getcwd()