Mercurial > hg
comparison tests/run-tests.py @ 17928:082c0e1ecc23
run-tests.py: remove runqueue's results parameter since it is now a global
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Thu, 08 Nov 2012 14:10:04 -0800 |
parents | 2631b3576a33 |
children | 95fc4ab324df |
comparison
equal
deleted
inserted
replaced
17927:9796d5437e72 | 17928:082c0e1ecc23 |
---|---|
1119 | 1119 |
1120 results = dict(p=[], f=[], s=[], i=[]) | 1120 results = dict(p=[], f=[], s=[], i=[]) |
1121 times = [] | 1121 times = [] |
1122 iolock = threading.Lock() | 1122 iolock = threading.Lock() |
1123 | 1123 |
1124 def runqueue(options, tests, results): | 1124 def runqueue(options, tests): |
1125 for test in tests: | 1125 for test in tests: |
1126 ret = runone(options, test) | 1126 ret = runone(options, test) |
1127 if options.first and ret is not None and not ret: | 1127 if options.first and ret is not None and not ret: |
1128 break | 1128 break |
1129 | 1129 |
1145 tests.pop(0) | 1145 tests.pop(0) |
1146 if not tests: | 1146 if not tests: |
1147 print "running all tests" | 1147 print "running all tests" |
1148 tests = orig | 1148 tests = orig |
1149 | 1149 |
1150 runqueue(options, tests, results) | 1150 runqueue(options, tests) |
1151 | 1151 |
1152 failed = len(results['f']) | 1152 failed = len(results['f']) |
1153 tested = len(results['p']) + failed | 1153 tested = len(results['p']) + failed |
1154 skipped = len(results['s']) | 1154 skipped = len(results['s']) |
1155 ignored = len(results['i']) | 1155 ignored = len(results['i']) |