| 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 |
| 11 On Linux platform, follow the instructions in this document | 11 On Linux platform, follow the instructions in this document |
| 12 https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment | 12 https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_
development.md |
| 13 to setup the sandbox manually before running the script. Otherwise the script | 13 to setup the sandbox manually before running the script. Otherwise the script |
| 14 fails to launch Chrome and exits with an error. | 14 fails to launch Chrome and exits with an error. |
| 15 | 15 |
| 16 This script serves a similar function to bisect-builds.py, except it uses | 16 This script serves a similar function to bisect-builds.py, except it uses |
| 17 the bisect_perf_regression.py. This means that that it can obtain builds of | 17 the bisect_perf_regression.py. This means that that it can obtain builds of |
| 18 Chromium for revisions where builds aren't available in cloud storage. | 18 Chromium for revisions where builds aren't available in cloud storage. |
| 19 """ | 19 """ |
| 20 | 20 |
| 21 import os | 21 import os |
| 22 import subprocess | 22 import subprocess |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 error_msg += 'Error: missing required parameter: --bad_revision\n' | 153 error_msg += 'Error: missing required parameter: --bad_revision\n' |
| 154 | 154 |
| 155 if error_msg: | 155 if error_msg: |
| 156 print error_msg | 156 print error_msg |
| 157 parser.print_help() | 157 parser.print_help() |
| 158 return 1 | 158 return 1 |
| 159 | 159 |
| 160 if 'android' not in options.browser_type and sys.platform.startswith('linux'): | 160 if 'android' not in options.browser_type and sys.platform.startswith('linux'): |
| 161 if not os.environ.get('CHROME_DEVEL_SANDBOX'): | 161 if not os.environ.get('CHROME_DEVEL_SANDBOX'): |
| 162 print 'SUID sandbox has not been setup.'\ | 162 print 'SUID sandbox has not been setup.'\ |
| 163 ' See https://code.google.com/p/chromium/wiki/'\ | 163 ' See https://chromium.googlesource.com/chromium/src/'\ |
| 164 'LinuxSUIDSandboxDevelopment for more information.' | 164 '+/master/docs/linux_suid_sandbox_development.md.' |
| 165 return 1 | 165 return 1 |
| 166 | 166 |
| 167 return _RunBisectionScript(options) | 167 return _RunBisectionScript(options) |
| 168 | 168 |
| 169 | 169 |
| 170 if __name__ == '__main__': | 170 if __name__ == '__main__': |
| 171 sys.exit(main()) | 171 sys.exit(main()) |
| OLD | NEW |