author | Simon Heimberg <simohe@besonet.ch> |
Wed, 22 Apr 2009 15:49:33 +0200 | |
changeset 8161 | 1bb8a75fceb3 |
parent 8160 | 094e0d982c8a |
child 8162 | 6f14253416bd |
--- a/tests/run-tests.py Thu Apr 23 08:39:27 2009 +0200 +++ b/tests/run-tests.py Wed Apr 22 15:49:33 2009 +0200 @@ -512,12 +512,11 @@ tests.reverse() jobs = [[] for j in xrange(options.jobs)] while tests: - for j in xrange(options.jobs): + for job in jobs: if not tests: break - jobs[j].append(tests.pop()) + job.append(tests.pop()) fps = {} - for j in xrange(len(jobs)): - job = jobs[j] + for j, job in enumerate(jobs): if not job: continue rfd, wfd = os.pipe()