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

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

Issue 2561153002: [Android] Handle unrun tests as a list rather than a set. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698