From bd3aa1380548de94e30206492646d7cb5ccaf0f6 Mon Sep 17 00:00:00 2001 From: simonhatch Date: Thu, 12 Feb 2015 07:29:35 -0800 Subject: Output device affinity along with the test name from test_runner.py. This will let us sort the runs by device, and make it clearer if one device is having trouble. Example: http://simonhatch0.mon.corp.google.com:8013/builders/Android%20Nexus7v2%20Perf/builds/455 Must land first: https://codereview.chromium.org/908313002/ BUG=455813 Review URL: https://codereview.chromium.org/914703002 Cr-Commit-Position: refs/heads/master@{#315980} --- build/android/pylib/perf/test_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/android/pylib/perf/test_runner.py b/build/android/pylib/perf/test_runner.py index b7fadd2..d9227a5 100644 --- a/build/android/pylib/perf/test_runner.py +++ b/build/android/pylib/perf/test_runner.py @@ -69,9 +69,10 @@ from pylib.device import device_errors def OutputJsonList(json_input, json_output): with file(json_input, 'r') as i: all_steps = json.load(i) - step_names = all_steps['steps'].keys() + step_values = [{'test': k, 'device_affinity': v['device_affinity']} + for k, v in all_steps['steps'].iteritems()] with file(json_output, 'w') as o: - o.write(json.dumps(step_names)) + o.write(json.dumps(step_values)) return 0 -- cgit v1.1