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 import inspect | 5 import inspect |
6 import os | 6 import os |
7 import re | 7 import re |
8 | 8 |
9 from collections import namedtuple | 9 from collections import namedtuple |
10 | 10 |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 322 |
323 @staticmethod | 323 @staticmethod |
324 def expect_path(_ext=None): | 324 def expect_path(_ext=None): |
325 return None | 325 return None |
326 | 326 |
327 def get_info(self): | 327 def get_info(self): |
328 """Strips MultiTest instance of hard-to-pickle stuff | 328 """Strips MultiTest instance of hard-to-pickle stuff |
329 | 329 |
330 Returns a MultiTestInfo instance. | 330 Returns a MultiTestInfo instance. |
331 """ | 331 """ |
332 all_tests = [test.get_restricted() for test in self.tests] | 332 all_tests = [test.get_info() for test in self.tests] |
333 test = MultiTestInfo(name=self.name, | 333 test = MultiTestInfo(name=self.name, |
334 tests=all_tests, | 334 tests=all_tests, |
335 atomic=self.atomic | 335 atomic=self.atomic |
336 ) | 336 ) |
337 return test | 337 return test |
338 | 338 |
339 | 339 |
340 class Handler(object): | 340 class Handler(object): |
341 """Handler object. | 341 """Handler object. |
342 | 342 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 print 'UNHANDLED:', obj | 451 print 'UNHANDLED:', obj |
452 return Failure() | 452 return Failure() |
453 | 453 |
454 def finalize(self, aborted): | 454 def finalize(self, aborted): |
455 """Called after __call__() has been called for all results. | 455 """Called after __call__() has been called for all results. |
456 | 456 |
457 @param aborted: True if the user aborted the run. | 457 @param aborted: True if the user aborted the run. |
458 @type aborted: bool | 458 @type aborted: bool |
459 """ | 459 """ |
460 pass | 460 pass |
OLD | NEW |