##// END OF EJS Templates
run-tests: give each child its own tmp dir (issue1911)...
Greg Ward -
r9899:be574a37 stable
parent child Browse files
Show More
@@ -31,8 +31,10 b''
31 # ./run-tests.py -j2 --local test-s*
31 # ./run-tests.py -j2 --local test-s*
32 # 7) parallel, coverage, temp install:
32 # 7) parallel, coverage, temp install:
33 # ./run-tests.py -j2 -c test-s* # currently broken
33 # ./run-tests.py -j2 -c test-s* # currently broken
34 # 8) parallel, coverage, local install
34 # 8) parallel, coverage, local install:
35 # ./run-tests.py -j2 -c --local test-s* # unsupported (and broken)
35 # ./run-tests.py -j2 -c --local test-s* # unsupported (and broken)
36 # 9) parallel, custom tmp dir:
37 # ./run-tests.py -j2 --tmpdir /tmp/myhgtests
36 #
38 #
37 # (You could use any subset of the tests: test-s* happens to match
39 # (You could use any subset of the tests: test-s* happens to match
38 # enough that it's worth doing parallel runs, few enough that it
40 # enough that it's worth doing parallel runs, few enough that it
@@ -639,6 +641,8 b' def runchildren(options, tests):'
639 continue
641 continue
640 rfd, wfd = os.pipe()
642 rfd, wfd = os.pipe()
641 childopts = ['--child=%d' % wfd, '--port=%d' % (options.port + j * 3)]
643 childopts = ['--child=%d' % wfd, '--port=%d' % (options.port + j * 3)]
644 childtmp = os.path.join(HGTMP, 'child%d' % j)
645 childopts += ['--tmpdir', childtmp]
642 cmdline = [PYTHON, sys.argv[0]] + opts + childopts + job
646 cmdline = [PYTHON, sys.argv[0]] + opts + childopts + job
643 vlog(' '.join(cmdline))
647 vlog(' '.join(cmdline))
644 fps[os.spawnvp(os.P_NOWAIT, cmdline[0], cmdline)] = os.fdopen(rfd, 'r')
648 fps[os.spawnvp(os.P_NOWAIT, cmdline[0], cmdline)] = os.fdopen(rfd, 'r')
General Comments 0
You need to be logged in to leave comments. Login now