| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Run Manual Test Bisect Tool | 6 """Run Manual Test Bisect Tool |
| 7 | 7 |
| 8 An example usage: | 8 An example usage: |
| 9 tools/run-bisect-manual-test.py -g 201281 -b 201290 | 9 tools/run-bisect-manual-test.py -g 201281 -b 201290 |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 import os | 21 import os |
| 22 import subprocess | 22 import subprocess |
| 23 import sys | 23 import sys |
| 24 | 24 |
| 25 CROS_BOARD_ENV = 'BISECT_CROS_BOARD' | 25 CROS_BOARD_ENV = 'BISECT_CROS_BOARD' |
| 26 CROS_IP_ENV = 'BISECT_CROS_IP' | 26 CROS_IP_ENV = 'BISECT_CROS_IP' |
| 27 _TOOLS_DIR = os.path.abspath(os.path.dirname(__file__)) | 27 _TOOLS_DIR = os.path.abspath(os.path.dirname(__file__)) |
| 28 _BISECT_SCRIPT_PATH = os.path.join( | 28 _BISECT_SCRIPT_PATH = os.path.join( |
| 29 _TOOLS_DIR, 'auto_bisect', 'bisect_perf_regression.py') | 29 _TOOLS_DIR, 'auto_bisect', 'bisect_perf_regression.py') |
| 30 | 30 |
| 31 sys.path.append(os.path.join(_TOOLS_DIR, 'telemetry')) | 31 sys.path.append(os.path.join(_TOOLS_DIR, 'perf')) |
| 32 from chrome_telemetry_build import chromium_config |
| 33 sys.path.append(chromium_config.GetTelemetryDir()) |
| 32 from telemetry.internal.browser import browser_options | 34 from telemetry.internal.browser import browser_options |
| 33 | 35 |
| 34 | 36 |
| 35 def _RunBisectionScript(options): | 37 def _RunBisectionScript(options): |
| 36 """Attempts to execute the bisect script (bisect_perf_regression.py). | 38 """Attempts to execute the bisect script (bisect_perf_regression.py). |
| 37 | 39 |
| 38 Args: | 40 Args: |
| 39 options: The configuration options to pass to the bisect script. | 41 options: The configuration options to pass to the bisect script. |
| 40 | 42 |
| 41 Returns: | 43 Returns: |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 print 'SUID sandbox has not been setup.'\ | 164 print 'SUID sandbox has not been setup.'\ |
| 163 ' See https://chromium.googlesource.com/chromium/src/'\ | 165 ' See https://chromium.googlesource.com/chromium/src/'\ |
| 164 '+/master/docs/linux_suid_sandbox_development.md.' | 166 '+/master/docs/linux_suid_sandbox_development.md.' |
| 165 return 1 | 167 return 1 |
| 166 | 168 |
| 167 return _RunBisectionScript(options) | 169 return _RunBisectionScript(options) |
| 168 | 170 |
| 169 | 171 |
| 170 if __name__ == '__main__': | 172 if __name__ == '__main__': |
| 171 sys.exit(main()) | 173 sys.exit(main()) |
| OLD | NEW |