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

Side by Side Diff: build/android/pylib/perf/setup.py

Issue 2084493003: Reland of [Android] Ensure perf test runner does not create shards for blacklisted devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 | « build/android/pylib/base/test_dispatcher.py ('k') | 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 """Generates test runner factory and tests for performance tests.""" 5 """Generates test runner factory and tests for performance tests."""
6 6
7 import json 7 import json
8 import fnmatch 8 import fnmatch
9 import logging 9 import logging
10 import os 10 import os
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 if test_options.test_filter: 91 if test_options.test_filter:
92 sorted_step_names = fnmatch.filter(sorted_step_names, 92 sorted_step_names = fnmatch.filter(sorted_step_names,
93 test_options.test_filter) 93 test_options.test_filter)
94 94
95 flaky_steps = [] 95 flaky_steps = []
96 if test_options.flaky_steps: 96 if test_options.flaky_steps:
97 with file(test_options.flaky_steps, 'r') as f: 97 with file(test_options.flaky_steps, 'r') as f:
98 flaky_steps = json.load(f) 98 flaky_steps = json.load(f)
99 99
100 def TestRunnerFactory(device, shard_index): 100 def TestRunnerFactory(device, shard_index):
101 return test_runner.TestRunner( 101 if str(device) in active_devices:
102 test_options, device, shard_index, len(all_devices), 102 return test_runner.TestRunner(
103 steps_dict, flaky_steps) 103 test_options, device, shard_index, len(all_devices),
104 steps_dict, flaky_steps)
105 return None
104 106
105 return (TestRunnerFactory, sorted_step_names, all_devices) 107 return (TestRunnerFactory, sorted_step_names, all_devices)
OLDNEW
« no previous file with comments | « build/android/pylib/base/test_dispatcher.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698