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

Side by Side Diff: tools/rebaseline.py

Issue 262703003: mark rebaseline.py as deprecated (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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
« 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 parser.add_argument('--builders', metavar='BUILDER', nargs='+', 389 parser.add_argument('--builders', metavar='BUILDER', nargs='+',
390 help=('which platforms to rebaseline; ' 390 help=('which platforms to rebaseline; '
391 'if unspecified, rebaseline all known platforms ' 391 'if unspecified, rebaseline all known platforms '
392 '(see below for a list)')) 392 '(see below for a list)'))
393 # TODO(epoger): Add test that exercises --configs argument. 393 # TODO(epoger): Add test that exercises --configs argument.
394 parser.add_argument('--configs', metavar='CONFIG', nargs='+', 394 parser.add_argument('--configs', metavar='CONFIG', nargs='+',
395 help=('which configurations to rebaseline, e.g. ' 395 help=('which configurations to rebaseline, e.g. '
396 '"--configs 565 8888", as a filter over the full set ' 396 '"--configs 565 8888", as a filter over the full set '
397 'of results in ACTUALS_FILENAME; if unspecified, ' 397 'of results in ACTUALS_FILENAME; if unspecified, '
398 'rebaseline *all* configs that are available.')) 398 'rebaseline *all* configs that are available.'))
399 parser.add_argument('--deprecated', action='store_true',
400 help=('run the tool even though it has been deprecated; '
401 'see http://tinyurl.com/SkiaRebaselineServer for '
402 'the recommended/supported process'))
399 parser.add_argument('--expectations-filename', 403 parser.add_argument('--expectations-filename',
400 help=('filename (under EXPECTATIONS_ROOT) to read ' 404 help=('filename (under EXPECTATIONS_ROOT) to read '
401 'current expectations from, and to write new ' 405 'current expectations from, and to write new '
402 'expectations into (unless a separate ' 406 'expectations into (unless a separate '
403 'EXPECTATIONS_FILENAME_OUTPUT has been specified); ' 407 'EXPECTATIONS_FILENAME_OUTPUT has been specified); '
404 'defaults to %(default)s'), 408 'defaults to %(default)s'),
405 default='expected-results.json') 409 default='expected-results.json')
406 parser.add_argument('--expectations-filename-output', 410 parser.add_argument('--expectations-filename-output',
407 help=('filename (under EXPECTATIONS_ROOT) to write ' 411 help=('filename (under EXPECTATIONS_ROOT) to write '
408 'updated expectations into; by default, overwrites ' 412 'updated expectations into; by default, overwrites '
(...skipping 30 matching lines...) Expand all
439 gm_json.JSONKEY_ACTUALRESULTS_FAILUREIGNORED)) 443 gm_json.JSONKEY_ACTUALRESULTS_FAILUREIGNORED))
440 parser.add_argument('--from-trybot', action='store_true', 444 parser.add_argument('--from-trybot', action='store_true',
441 help=('pull the actual-results.json file from the ' 445 help=('pull the actual-results.json file from the '
442 'corresponding trybot, rather than the main builder')) 446 'corresponding trybot, rather than the main builder'))
443 parser.add_argument('--skimage', action='store_true', 447 parser.add_argument('--skimage', action='store_true',
444 help=('Rebaseline skimage results instead of gm. Defaults ' 448 help=('Rebaseline skimage results instead of gm. Defaults '
445 'to False. If True, TESTS and CONFIGS are ignored, ' 449 'to False. If True, TESTS and CONFIGS are ignored, '
446 'and ACTUALS_BASE_URL and EXPECTATIONS_ROOT are set ' 450 'and ACTUALS_BASE_URL and EXPECTATIONS_ROOT are set '
447 'to alternate defaults, specific to skimage.')) 451 'to alternate defaults, specific to skimage.'))
448 args = parser.parse_args() 452 args = parser.parse_args()
453 if not args.deprecated:
454 raise Exception(
455 'This tool has been deprecated; see'
456 ' http://tinyurl.com/SkiaRebaselineServer for the recommended/supported'
457 ' process, or re-run with the --deprecated option to press on.')
449 exception_handler = ExceptionHandler( 458 exception_handler = ExceptionHandler(
450 keep_going_on_failure=args.keep_going_on_failure) 459 keep_going_on_failure=args.keep_going_on_failure)
451 if args.builders: 460 if args.builders:
452 builders = args.builders 461 builders = args.builders
453 missing_json_is_fatal = True 462 missing_json_is_fatal = True
454 else: 463 else:
455 builders = sorted(TEST_BUILDERS) 464 builders = sorted(TEST_BUILDERS)
456 missing_json_is_fatal = False 465 missing_json_is_fatal = False
457 if args.skimage: 466 if args.skimage:
458 # Use a different default if --skimage is specified. 467 # Use a different default if --skimage is specified.
(...skipping 29 matching lines...) Expand all
488 except: 497 except:
489 exception_handler.RaiseExceptionOrContinue() 498 exception_handler.RaiseExceptionOrContinue()
490 else: 499 else:
491 try: 500 try:
492 raise _InternalException('expectations_json_file %s not found' % 501 raise _InternalException('expectations_json_file %s not found' %
493 expectations_json_file) 502 expectations_json_file)
494 except: 503 except:
495 exception_handler.RaiseExceptionOrContinue() 504 exception_handler.RaiseExceptionOrContinue()
496 505
497 exception_handler.ReportAllFailures() 506 exception_handler.ReportAllFailures()
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