Show More
@@ -137,8 +137,6 b' def parseargs():' | |||
|
137 | 137 | help="always run tests listed in the specified whitelist file") |
|
138 | 138 | parser.add_option("-C", "--annotate", action="store_true", |
|
139 | 139 | help="output files annotated with coverage") |
|
140 | parser.add_option("--child", type="int", | |
|
141 | help="run as child process, summary to given fd") | |
|
142 | 140 | parser.add_option("-c", "--cover", action="store_true", |
|
143 | 141 | help="print a test coverage report") |
|
144 | 142 | parser.add_option("-d", "--debug", action="store_true", |
@@ -242,9 +240,6 b' def parseargs():' | |||
|
242 | 240 | |
|
243 | 241 | global verbose |
|
244 | 242 | if options.verbose: |
|
245 | if options.jobs > 1 or options.child is not None: | |
|
246 | verbose = "[%d]" % os.getpid() | |
|
247 | else: | |
|
248 | 243 |
|
|
249 | 244 | |
|
250 | 245 | if options.tmpdir: |
@@ -272,8 +267,7 b' def parseargs():' | |||
|
272 | 267 | if options.blacklist: |
|
273 | 268 | options.blacklist = parselistfiles(options.blacklist, 'blacklist') |
|
274 | 269 | if options.whitelist: |
|
275 |
options.whitelisted = parselistfiles(options.whitelist, 'whitelist' |
|
|
276 | warn=options.child is None) | |
|
270 | options.whitelisted = parselistfiles(options.whitelist, 'whitelist') | |
|
277 | 271 | else: |
|
278 | 272 | options.whitelisted = {} |
|
279 | 273 | |
@@ -568,9 +562,6 b' def outputcoverage(options):' | |||
|
568 | 562 | vlog('# Running: %s' % cmd) |
|
569 | 563 | os.system(cmd) |
|
570 | 564 | |
|
571 | if options.child: | |
|
572 | return | |
|
573 | ||
|
574 | 565 | covrun('-c') |
|
575 | 566 | omit = ','.join(os.path.join(x, '*') for x in [BINDIR, TESTDIR]) |
|
576 | 567 | covrun('-i', '-r', '"--omit=%s"' % omit) # report |
@@ -1133,13 +1124,6 b' def runtests(options, tests):' | |||
|
1133 | 1124 | skipped = len(results['s']) |
|
1134 | 1125 | ignored = len(results['i']) |
|
1135 | 1126 | |
|
1136 | if options.child: | |
|
1137 | fp = os.fdopen(options.child, 'wb') | |
|
1138 | pickle.dump(results, fp, pickle.HIGHEST_PROTOCOL) | |
|
1139 | if options.time: | |
|
1140 | pickle.dump(times, fp, pickle.HIGHEST_PROTOCOL) | |
|
1141 | fp.close() | |
|
1142 | else: | |
|
1143 | 1127 |
|
|
1144 | 1128 |
|
|
1145 | 1129 |
|
@@ -1155,7 +1139,6 b' def runtests(options, tests):' | |||
|
1155 | 1139 | outputcoverage(options) |
|
1156 | 1140 | except KeyboardInterrupt: |
|
1157 | 1141 | failed = True |
|
1158 | if not options.child: | |
|
1159 | 1142 |
|
|
1160 | 1143 | |
|
1161 | 1144 | if failed: |
@@ -1166,7 +1149,6 b" testtypes = [('.py', pytest, '.out')," | |||
|
1166 | 1149 | |
|
1167 | 1150 | def main(): |
|
1168 | 1151 | (options, args) = parseargs() |
|
1169 | if not options.child: | |
|
1170 | 1152 |
|
|
1171 | 1153 | |
|
1172 | 1154 |
|
@@ -1193,7 +1175,6 b' def main():' | |||
|
1193 | 1175 | global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE |
|
1194 | 1176 | TESTDIR = os.environ["TESTDIR"] = os.getcwd() |
|
1195 | 1177 | if options.tmpdir: |
|
1196 | if not options.child: | |
|
1197 | 1178 |
|
|
1198 | 1179 | tmpdir = options.tmpdir |
|
1199 | 1180 | if os.path.exists(tmpdir): |
@@ -1235,7 +1216,6 b' def main():' | |||
|
1235 | 1216 | os.environ["BINDIR"] = BINDIR |
|
1236 | 1217 | os.environ["PYTHON"] = PYTHON |
|
1237 | 1218 | |
|
1238 | if not options.child: | |
|
1239 | 1219 |
|
|
1240 | 1220 |
|
|
1241 | 1221 |
General Comments 0
You need to be logged in to leave comments.
Login now