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

Unified Diff: scripts/slave/recipes/android/perf.py

Issue 1764693003: [Android] Add ability to configure known devices file for perf tests to android/perf.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: make .known_devices default Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/android/perf.py
diff --git a/scripts/slave/recipes/android/perf.py b/scripts/slave/recipes/android/perf.py
index a1d43ce3838ed83f05556a6d64998a3964ccbc03..e9bda6369f2bb7e00222e497ca6c1272f03e209d 100644
--- a/scripts/slave/recipes/android/perf.py
+++ b/scripts/slave/recipes/android/perf.py
@@ -26,15 +26,15 @@ REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'
def _ChromiumPerfTesters():
def _AddTestSpec(name, perf_id, num_device_shards=1, num_host_shards=1,
- target_bits=64):
+ target_bits=64, known_devices_file='.known_devices'):
for shard_index in xrange(num_host_shards):
builder_name = '%s (%d)' % (name, shard_index + 1)
testers[builder_name] = _TestSpec(
name, perf_id, num_device_shards, num_host_shards, shard_index,
- target_bits)
+ target_bits, known_devices_file)
def _TestSpec(name, perf_id, num_device_shards, num_host_shards, shard_index,
- target_bits):
+ target_bits, known_devices_file):
spec = {
'perf_id': perf_id,
'bucket': 'chrome-perf',
@@ -43,6 +43,7 @@ def _ChromiumPerfTesters():
'shard_index': shard_index,
'test_spec_file': 'chromium.perf.json',
'max_battery_temp': 350,
+ 'known_devices_file': known_devices_file,
}
if target_bits == 32:
@@ -183,7 +184,8 @@ def RunSteps(api):
max_battery_temp=builder.get('max_battery_temp'),
num_device_shards=builder['num_device_shards'],
num_host_shards=builder.get('num_host_shards', 1),
- shard_index=builder.get('shard_index', 0))
+ shard_index=builder.get('shard_index', 0),
+ known_devices_file=builder.get('known_devices_file', None))
dynamic_perf_tests.run(api, None)
if failures:

Powered by Google App Engine
This is Rietveld 408576698