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

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

Issue 1314313004: [Android][telemetry] Update pylib imports for modules that moved into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
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
11 import shutil 11 import shutil
12 12
13 from devil.android import device_list
14 from devil.android import device_utils
13 from pylib import constants 15 from pylib import constants
14 from pylib import forwarder 16 from pylib import forwarder
15 from pylib.device import device_list
16 from pylib.device import device_utils
17 from pylib.perf import test_runner 17 from pylib.perf import test_runner
18 from pylib.utils import test_environment 18 from pylib.utils import test_environment
19 19
20 20
21 def _GetAllDevices(active_devices): 21 def _GetAllDevices(active_devices):
22 devices_path = os.path.join(os.environ.get('CHROMIUM_OUT_DIR', 'out'), 22 devices_path = os.path.join(os.environ.get('CHROMIUM_OUT_DIR', 'out'),
23 device_list.LAST_DEVICES_FILENAME) 23 device_list.LAST_DEVICES_FILENAME)
24 try: 24 try:
25 devices = [device_utils.DeviceUtils(s) 25 devices = [device_utils.DeviceUtils(s)
26 for s in device_list.GetPersistentDeviceList(devices_path)] 26 for s in device_list.GetPersistentDeviceList(devices_path)]
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 if test_options.flaky_steps: 88 if test_options.flaky_steps:
89 with file(test_options.flaky_steps, 'r') as f: 89 with file(test_options.flaky_steps, 'r') as f:
90 flaky_steps = json.load(f) 90 flaky_steps = json.load(f)
91 91
92 def TestRunnerFactory(device, shard_index): 92 def TestRunnerFactory(device, shard_index):
93 return test_runner.TestRunner( 93 return test_runner.TestRunner(
94 test_options, device, shard_index, len(all_devices), 94 test_options, device, shard_index, len(all_devices),
95 steps_dict, flaky_steps) 95 steps_dict, flaky_steps)
96 96
97 return (TestRunnerFactory, sorted_step_names, all_devices) 97 return (TestRunnerFactory, sorted_step_names, all_devices)
OLDNEW
« no previous file with comments | « build/android/pylib/perf/perf_control_unittest.py ('k') | build/android/pylib/perf/surface_stats_collector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698