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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 return_code | 75 return_code |
76 print | 76 print |
77 | 77 |
78 return return_code | 78 return return_code |
79 | 79 |
80 | 80 |
81 def main(): | 81 def main(): |
82 usage = ('%prog [options]\n' | 82 usage = ('%prog [options]\n' |
83 'Used to run the bisection script with a manual test.') | 83 'Used to run the bisection script with a manual test.') |
84 | 84 |
85 options = browser_options.BrowserOptions('release') | 85 options = browser_options.BrowserFinderOptions('release') |
86 parser = options.CreateParser(usage) | 86 parser = options.CreateParser(usage) |
87 | 87 |
88 parser.add_option('-b', '--bad_revision', | 88 parser.add_option('-b', '--bad_revision', |
89 type='str', | 89 type='str', |
90 help='A bad revision to start bisection. ' + | 90 help='A bad revision to start bisection. ' + |
91 'Must be later than good revision. May be either a git' + | 91 'Must be later than good revision. May be either a git' + |
92 ' or svn revision.') | 92 ' or svn revision.') |
93 parser.add_option('-g', '--good_revision', | 93 parser.add_option('-g', '--good_revision', |
94 type='str', | 94 type='str', |
95 help='A revision to start bisection where performance' + | 95 help='A revision to start bisection where performance' + |
(...skipping 23 matching lines...) Expand all Loading... |
119 print 'SUID sandbox has not been setup.'\ | 119 print 'SUID sandbox has not been setup.'\ |
120 ' See https://code.google.com/p/chromium/wiki/'\ | 120 ' See https://code.google.com/p/chromium/wiki/'\ |
121 'LinuxSUIDSandboxDevelopment for more information.' | 121 'LinuxSUIDSandboxDevelopment for more information.' |
122 return 1 | 122 return 1 |
123 | 123 |
124 return _RunBisectionScript(options) | 124 return _RunBisectionScript(options) |
125 | 125 |
126 | 126 |
127 if __name__ == '__main__': | 127 if __name__ == '__main__': |
128 sys.exit(main()) | 128 sys.exit(main()) |
OLD | NEW |