tests/run-tests.py
branchstable
changeset 680 f10a5301d082
parent 674 0efa9d6ac11f
child 681 d0a410e49776
equal deleted inserted replaced
679:f4cb54ed71b1 680:f10a5301d082
   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