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

Unified Diff: build/android/pylib/local/device/local_device_perf_test_run.py

Issue 2486993003: [Android] Make android test runner run perf tests in alphabetical order. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/local/device/local_device_perf_test_run.py
diff --git a/build/android/pylib/local/device/local_device_perf_test_run.py b/build/android/pylib/local/device/local_device_perf_test_run.py
index fe8a1329a8dcca106132aee8051f804caeb0abbb..823e9032bbd98a5ab99af5f87f3f5a2c1d87fc76 100644
--- a/build/android/pylib/local/device/local_device_perf_test_run.py
+++ b/build/android/pylib/local/device/local_device_perf_test_run.py
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import collections
import io
import json
import logging
@@ -370,7 +371,7 @@ class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun):
# run on the same devices. This is important for perf tests since different
# devices might yield slightly different performance results.
test_dict = self._GetStepsFromDict()
- for test, test_config in test_dict['steps'].iteritems():
+ for test, test_config in sorted(test_dict['steps'].iteritems()):
try:
affinity = test_config.get('device_affinity')
if affinity is None:
@@ -378,7 +379,7 @@ class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun):
else:
if len(self._test_buckets) < affinity + 1:
while len(self._test_buckets) != affinity + 1:
- self._test_buckets.append({})
+ self._test_buckets.append(collections.OrderedDict())
self._test_buckets[affinity][test] = test_config
except KeyError:
logging.exception(
« 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