Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: build/android/pylib/local/device/local_device_gtest_run.py

Issue 2541093004: [Android] Try harder to run every gtest within each try. (Closed)
Patch Set: mikecase comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 resolved_tombstones = None 417 resolved_tombstones = None
418 for result in results: 418 for result in results:
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 return results 427
428 not_run_tests = set(test).difference(set(r.GetName() for r in results))
429 return results, not_run_tests
428 430
429 #override 431 #override
430 def TearDown(self): 432 def TearDown(self):
431 @local_device_environment.handle_shard_failures 433 @local_device_environment.handle_shard_failures
432 def individual_device_tear_down(dev): 434 def individual_device_tear_down(dev):
433 for s in self._servers.get(str(dev), []): 435 for s in self._servers.get(str(dev), []):
434 s.TearDown() 436 s.TearDown()
435 437
436 tool = self.GetTool(dev) 438 tool = self.GetTool(dev)
437 tool.CleanUpEnvironment() 439 tool.CleanUpEnvironment()
438 440
439 self._env.parallel_devices.pMap(individual_device_tear_down) 441 self._env.parallel_devices.pMap(individual_device_tear_down)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698