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

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

Issue 153743008: Revert of Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with changes to pylib/linker/test_case.py. Created 6 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 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 """Runs perf tests. 5 """Runs perf tests.
6 6
7 Our buildbot infrastructure requires each slave to run steps serially. 7 Our buildbot infrastructure requires each slave to run steps serially.
8 This is sub-optimal for android, where these steps can run independently on 8 This is sub-optimal for android, where these steps can run independently on
9 multiple connected devices. 9 multiple connected devices.
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 def RunTest(self, test_name): 223 def RunTest(self, test_name):
224 """Run a perf test on the device. 224 """Run a perf test on the device.
225 225
226 Args: 226 Args:
227 test_name: String to use for logging the test result. 227 test_name: String to use for logging the test result.
228 228
229 Returns: 229 Returns:
230 A tuple of (TestRunResults, retry). 230 A tuple of (TestRunResults, retry).
231 """ 231 """
232 _, result_type = self._LaunchPerfTest(test_name) 232 output, result_type = self._LaunchPerfTest(test_name)
233 results = base_test_result.TestRunResults() 233 results = base_test_result.TestRunResults()
234 results.AddResult(base_test_result.BaseTestResult(test_name, result_type)) 234 results.AddResult(base_test_result.BaseTestResult(test_name, result_type))
235 retry = None 235 retry = None
236 if not results.DidRunPass(): 236 if not results.DidRunPass():
237 retry = test_name 237 retry = test_name
238 return results, retry 238 return results, retry
OLDNEW
« no previous file with comments | « build/android/pylib/perf/surface_stats_collector_unittest.py ('k') | build/android/pylib/perf/thermal_throttle.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698