Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: tools/prepare-bisect-perf-regression.py

Issue 359013002: Make a directory in which to put bisect-related modules. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bisect -> auto_bisect Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/post_perf_builder_job.py ('k') | tools/run-bisect-perf-regression.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 An example usage: 11 An example usage:
12 12
13 ./tools/prepare-bisect-perf-regressions.py --working_directory "~/builds" 13 ./tools/prepare-bisect-perf-regressions.py --working_directory "~/builds"
14 --output_buildbot_annotations 14 --output_buildbot_annotations
15 15
16 Would result in creating ~/builds/bisect and then populating it with a copy of 16 Would result in creating ~/builds/bisect and then populating it with a copy of
17 the depot. 17 the depot.
18 18
19 """ 19 """
20 20
21 import optparse 21 import optparse
22 import sys 22 import sys
23 23
24 import bisect_utils 24 from auto_bisect import bisect_utils
25 25
26 26
27 def main(): 27 def main():
28 28
29 usage = ('%prog [options] [-- chromium-options]\n' 29 usage = ('%prog [options] [-- chromium-options]\n'
30 'Prepares a temporary depot for use on a trybot.') 30 'Prepares a temporary depot for use on a trybot.')
31 31
32 parser = optparse.OptionParser(usage=usage) 32 parser = optparse.OptionParser(usage=usage)
33 33
34 parser.add_option('-w', '--working_directory', 34 parser.add_option('-w', '--working_directory',
(...skipping 26 matching lines...) Expand all
61 try: 61 try:
62 bisect_utils.CreateBisectDirectoryAndSetupDepot(opts, 62 bisect_utils.CreateBisectDirectoryAndSetupDepot(opts,
63 bisect_utils.DEFAULT_GCLIENT_CUSTOM_DEPS) 63 bisect_utils.DEFAULT_GCLIENT_CUSTOM_DEPS)
64 except RuntimeError: 64 except RuntimeError:
65 return 1 65 return 1
66 return 0 66 return 0
67 67
68 68
69 if __name__ == '__main__': 69 if __name__ == '__main__':
70 sys.exit(main()) 70 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/post_perf_builder_job.py ('k') | tools/run-bisect-perf-regression.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698