Mercurial > hg
comparison tests/run-tests.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | c437745f50ec |
comparison
equal
deleted
inserted
replaced
10281:e7d3b509af8b | 10282:08a0f04b56bd |
---|---|
229 if n == -1: | 229 if n == -1: |
230 last = text[i:] | 230 last = text[i:] |
231 if last: | 231 if last: |
232 lines.append(last) | 232 lines.append(last) |
233 return lines | 233 return lines |
234 lines.append(text[i:n+1]) | 234 lines.append(text[i:n + 1]) |
235 i = n + 1 | 235 i = n + 1 |
236 | 236 |
237 def parsehghaveoutput(lines): | 237 def parsehghaveoutput(lines): |
238 '''Parse hghave log lines. | 238 '''Parse hghave log lines. |
239 Return tuple of lists (missing, failed): | 239 Return tuple of lists (missing, failed): |
658 | 658 |
659 tests.reverse() | 659 tests.reverse() |
660 jobs = [[] for j in xrange(options.jobs)] | 660 jobs = [[] for j in xrange(options.jobs)] |
661 while tests: | 661 while tests: |
662 for job in jobs: | 662 for job in jobs: |
663 if not tests: break | 663 if not tests: |
664 break | |
664 job.append(tests.pop()) | 665 job.append(tests.pop()) |
665 fps = {} | 666 fps = {} |
666 for j, job in enumerate(jobs): | 667 for j, job in enumerate(jobs): |
667 if not job: | 668 if not job: |
668 continue | 669 continue |