OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 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 """Prepare Performance Test Bisect Tool | 6 """Prepare Performance Test Bisect Tool |
7 | 7 |
8 This script is used by a trybot to create a working directory and sync an | 8 This script is used by a trybot to create a working directory and sync an |
9 initial copy of the depot for use in bisecting performance regressions. | 9 initial copy of the depot for use in bisecting performance regressions. |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 'other than "chromium", you must be properly set up to ' | 50 'other than "chromium", you must be properly set up to ' |
51 'build that platform.') | 51 'build that platform.') |
52 (opts, args) = parser.parse_args() | 52 (opts, args) = parser.parse_args() |
53 | 53 |
54 if not opts.working_directory: | 54 if not opts.working_directory: |
55 print 'Error: missing required parameter: --working_directory' | 55 print 'Error: missing required parameter: --working_directory' |
56 print | 56 print |
57 parser.print_help() | 57 parser.print_help() |
58 return 1 | 58 return 1 |
59 | 59 |
60 return bisect_utils.CreateBisectDirectoryAndSetupDepot( | 60 if not bisect_utils.CheckIfBisectDepotExists(opts): |
61 opts, | 61 return bisect_utils.CreateBisectDirectoryAndSetupDepot( |
62 bisect_utils.DEFAULT_GCLIENT_CUSTOM_DEPS) | 62 opts, |
| 63 bisect_utils.DEFAULT_GCLIENT_CUSTOM_DEPS) |
| 64 return 0 |
63 | 65 |
64 | 66 |
65 if __name__ == '__main__': | 67 if __name__ == '__main__': |
66 sys.exit(main()) | 68 sys.exit(main()) |
OLD | NEW |