Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 8161:1bb8a75fceb3
run-tests: cosmetics
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Wed, 22 Apr 2009 15:49:33 +0200 |
parents | c11636f0609e |
children | 46293a0c7e9f |
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()