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

Side by Side Diff: tools/rebaseline.py

Issue 16093025: rebaseline.py: if --tests is not specified, get test list from actual-results.json (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | 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/python 1 #!/usr/bin/python
2 2
3 ''' 3 '''
4 Copyright 2012 Google Inc. 4 Copyright 2012 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 ''' 8 '''
9 9
10 ''' 10 '''
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 parser = argparse.ArgumentParser() 181 parser = argparse.ArgumentParser()
182 parser.add_argument('--configs', metavar='CONFIG', nargs='+', 182 parser.add_argument('--configs', metavar='CONFIG', nargs='+',
183 help='which configurations to rebaseline, e.g. ' + 183 help='which configurations to rebaseline, e.g. ' +
184 '"--configs 565 8888"; if unspecified, run a default ' + 184 '"--configs 565 8888"; if unspecified, run a default ' +
185 'set of configs') 185 'set of configs')
186 parser.add_argument('--dry_run', action='store_true', 186 parser.add_argument('--dry_run', action='store_true',
187 help='instead of actually downloading files or adding ' + 187 help='instead of actually downloading files or adding ' +
188 'files to checkout, display a list of operations that ' + 188 'files to checkout, display a list of operations that ' +
189 'we would normally perform') 189 'we would normally perform')
190 parser.add_argument('--json_base_url',
epoger 2013/06/04 15:54:50 Patchset 1 adds json_base_url argument (not used y
191 help='base URL from which to read actual-results.json ' +
192 'files; defaults to %(default)s',
193 default='http://skia-autogen.googlecode.com/svn/gm-actual')
190 parser.add_argument('--subdirs', metavar='SUBDIR', nargs='+', 194 parser.add_argument('--subdirs', metavar='SUBDIR', nargs='+',
191 help='which platform subdirectories to rebaseline; ' + 195 help='which platform subdirectories to rebaseline; ' +
192 'if unspecified, rebaseline all subdirs, same as ' + 196 'if unspecified, rebaseline all subdirs, same as ' +
193 '"--subdirs %s"' % ' '.join(sorted(SUBDIR_MAPPING.keys()))) 197 '"--subdirs %s"' % ' '.join(sorted(SUBDIR_MAPPING.keys())))
194 parser.add_argument('--tests', metavar='TEST', nargs='+', required=True, 198 parser.add_argument('--tests', metavar='TEST', nargs='+', required=True,
195 help='which tests to rebaseline, e.g. ' + 199 help='which tests to rebaseline, e.g. ' +
196 '"--tests aaclip bigmatrix"') 200 '"--tests aaclip bigmatrix"; if unspecified, then all ' +
201 'failing tests (according to the actual-results.json ' +
202 'file) will be rebaselined.')
197 args = parser.parse_args() 203 args = parser.parse_args()
198 rebaseliner = Rebaseliner(tests=args.tests, configs=args.configs, 204 rebaseliner = Rebaseliner(tests=args.tests, configs=args.configs,
199 subdirs=args.subdirs, dry_run=args.dry_run) 205 subdirs=args.subdirs, dry_run=args.dry_run)
200 rebaseliner.RebaselineAll() 206 rebaseliner.RebaselineAll()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698