OLD | NEW |
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 Loading... |
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 output, result_type = self._LaunchPerfTest(test_name) | 232 _, 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 |
OLD | NEW |