| 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 collections | 5 import collections |
| 6 import itertools | 6 import itertools |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import posixpath | 9 import posixpath |
| 10 | 10 |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 if result.GetType() == base_test_result.ResultType.CRASH: | 419 if result.GetType() == base_test_result.ResultType.CRASH: |
| 420 if not resolved_tombstones: | 420 if not resolved_tombstones: |
| 421 resolved_tombstones = '\n'.join(tombstones.ResolveTombstones( | 421 resolved_tombstones = '\n'.join(tombstones.ResolveTombstones( |
| 422 device, | 422 device, |
| 423 resolve_all_tombstones=True, | 423 resolve_all_tombstones=True, |
| 424 include_stack_symbols=False, | 424 include_stack_symbols=False, |
| 425 wipe_tombstones=True)) | 425 wipe_tombstones=True)) |
| 426 result.SetTombstones(resolved_tombstones) | 426 result.SetTombstones(resolved_tombstones) |
| 427 | 427 |
| 428 not_run_tests = set(test).difference(set(r.GetName() for r in results)) | 428 not_run_tests = set(test).difference(set(r.GetName() for r in results)) |
| 429 return results, not_run_tests | 429 return results, list(not_run_tests) |
| 430 | 430 |
| 431 #override | 431 #override |
| 432 def TearDown(self): | 432 def TearDown(self): |
| 433 @local_device_environment.handle_shard_failures | 433 @local_device_environment.handle_shard_failures |
| 434 def individual_device_tear_down(dev): | 434 def individual_device_tear_down(dev): |
| 435 for s in self._servers.get(str(dev), []): | 435 for s in self._servers.get(str(dev), []): |
| 436 s.TearDown() | 436 s.TearDown() |
| 437 | 437 |
| 438 tool = self.GetTool(dev) | 438 tool = self.GetTool(dev) |
| 439 tool.CleanUpEnvironment() | 439 tool.CleanUpEnvironment() |
| 440 | 440 |
| 441 self._env.parallel_devices.pMap(individual_device_tear_down) | 441 self._env.parallel_devices.pMap(individual_device_tear_down) |
| OLD | NEW |