| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Pull latest revisions of a W3C test repo and make a local commit.""" | 5 """Pull latest revisions of a W3C test repo and make a local commit.""" |
| 6 | 6 |
| 7 import argparse | 7 import argparse |
| 8 import time | 8 import time |
| 9 | 9 |
| 10 from webkitpy.common.webkit_finder import WebKitFinder | 10 from webkitpy.common.webkit_finder import WebKitFinder |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 sets = {} | 263 sets = {} |
| 264 for line in results.splitlines(): | 264 for line in results.splitlines(): |
| 265 line = line.strip() | 265 line = line.strip() |
| 266 if line[-1] == ':': | 266 if line[-1] == ':': |
| 267 result_type = line[:-1] | 267 result_type = line[:-1] |
| 268 sets[result_type] = set() | 268 sets[result_type] = set() |
| 269 elif line.split()[0] == 'Total:': | 269 elif line.split()[0] == 'Total:': |
| 270 break | 270 break |
| 271 else: | 271 else: |
| 272 sets[result_type].add(line.split()[0]) | 272 sets[result_type].add(line.split()[0]) |
| 273 print sets | |
| 274 sets['Failures'] -= sets['Successes'] | 273 sets['Failures'] -= sets['Successes'] |
| 275 sets['Started'] -= sets['Successes'] | 274 sets['Started'] -= sets['Successes'] |
| 276 sets['Started'] -= sets['Failures'] | 275 sets['Started'] -= sets['Failures'] |
| 277 return sets | 276 return sets |
| 278 | 277 |
| 279 def check_run(self, command): | 278 def check_run(self, command): |
| 280 return_code, out = self.run(command) | 279 return_code, out = self.run(command) |
| 281 if return_code: | 280 if return_code: |
| 282 raise Exception('%s failed with exit code %d.' % ' '.join(command),
return_code) | 281 raise Exception('%s failed with exit code %d.' % ' '.join(command),
return_code) |
| 283 return out | 282 return out |
| OLD | NEW |