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 import time | 10 import time |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 resolve_all_tombstones=True, | 431 resolve_all_tombstones=True, |
432 include_stack_symbols=False, | 432 include_stack_symbols=False, |
433 wipe_tombstones=True) | 433 wipe_tombstones=True) |
434 stream_name = 'tombstones_%s_%s' % ( | 434 stream_name = 'tombstones_%s_%s' % ( |
435 time.strftime('%Y%m%dT%H%M%S', time.localtime()), | 435 time.strftime('%Y%m%dT%H%M%S', time.localtime()), |
436 device.serial) | 436 device.serial) |
437 tombstones_url = logdog_helper.text( | 437 tombstones_url = logdog_helper.text( |
438 stream_name, resolved_tombstones) | 438 stream_name, resolved_tombstones) |
439 result.SetLink('tombstones', tombstones_url) | 439 result.SetLink('tombstones', tombstones_url) |
440 | 440 |
441 not_run_tests = set(test).difference(set(r.GetName() for r in results)) | 441 tests_stripped_disabled_prefix = set() |
| 442 for t in test: |
| 443 tests_stripped_disabled_prefix.add( |
| 444 gtest_test_instance.TestNameWithoutDisabledPrefix(t)) |
| 445 not_run_tests = tests_stripped_disabled_prefix.difference( |
| 446 set(r.GetName() for r in results)) |
442 return results, list(not_run_tests) if results else None | 447 return results, list(not_run_tests) if results else None |
443 | 448 |
444 #override | 449 #override |
445 def TearDown(self): | 450 def TearDown(self): |
446 @local_device_environment.handle_shard_failures | 451 @local_device_environment.handle_shard_failures |
447 @trace_event.traced | 452 @trace_event.traced |
448 def individual_device_tear_down(dev): | 453 def individual_device_tear_down(dev): |
449 for s in self._servers.get(str(dev), []): | 454 for s in self._servers.get(str(dev), []): |
450 s.TearDown() | 455 s.TearDown() |
451 | 456 |
452 tool = self.GetTool(dev) | 457 tool = self.GetTool(dev) |
453 tool.CleanUpEnvironment() | 458 tool.CleanUpEnvironment() |
454 | 459 |
455 self._env.parallel_devices.pMap(individual_device_tear_down) | 460 self._env.parallel_devices.pMap(individual_device_tear_down) |
OLD | NEW |