1069 childopts = ['--child=%d' % wfd, '--port=%d' % (options.port + j * 3)] |
1069 childopts = ['--child=%d' % wfd, '--port=%d' % (options.port + j * 3)] |
1070 childtmp = os.path.join(HGTMP, 'child%d' % j) |
1070 childtmp = os.path.join(HGTMP, 'child%d' % j) |
1071 childopts += ['--tmpdir', childtmp] |
1071 childopts += ['--tmpdir', childtmp] |
1072 cmdline = [PYTHON, sys.argv[0]] + opts + childopts + job |
1072 cmdline = [PYTHON, sys.argv[0]] + opts + childopts + job |
1073 vlog(' '.join(cmdline)) |
1073 vlog(' '.join(cmdline)) |
1074 fps[os.spawnvp(os.P_NOWAIT, cmdline[0], cmdline)] = os.fdopen(rfd, 'r') |
1074 fps[os.spawnvp(os.P_NOWAIT, cmdline[0], cmdline)] = os.fdopen(rfd, 'rb') |
1075 os.close(wfd) |
1075 os.close(wfd) |
1076 signal.signal(signal.SIGINT, signal.SIG_IGN) |
1076 signal.signal(signal.SIGINT, signal.SIG_IGN) |
1077 failures = 0 |
1077 failures = 0 |
1078 passed, skipped, failed = 0, 0, 0 |
1078 passed, skipped, failed = 0, 0, 0 |
1079 skips = [] |
1079 skips = [] |
1153 tested = len(results['p']) + failed |
1153 tested = len(results['p']) + failed |
1154 skipped = len(results['s']) |
1154 skipped = len(results['s']) |
1155 ignored = len(results['i']) |
1155 ignored = len(results['i']) |
1156 |
1156 |
1157 if options.child: |
1157 if options.child: |
1158 fp = os.fdopen(options.child, 'w') |
1158 fp = os.fdopen(options.child, 'wb') |
1159 pickle.dump(results, fp, pickle.HIGHEST_PROTOCOL) |
1159 pickle.dump(results, fp, pickle.HIGHEST_PROTOCOL) |
1160 if options.time: |
1160 if options.time: |
1161 pickle.dump(times, fp, pickle.HIGHEST_PROTOCOL) |
1161 pickle.dump(times, fp, pickle.HIGHEST_PROTOCOL) |
1162 fp.close() |
1162 fp.close() |
1163 else: |
1163 else: |