Mercurial > hg
changeset 8161:1bb8a75fceb3
run-tests: cosmetics
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Wed, 22 Apr 2009 15:49:33 +0200 |
parents | 094e0d982c8a |
children | 6f14253416bd |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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()