OLD | NEW |
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 # main... | 338 # main... |
339 | 339 |
340 parser = argparse.ArgumentParser( | 340 parser = argparse.ArgumentParser( |
341 formatter_class=argparse.RawDescriptionHelpFormatter, | 341 formatter_class=argparse.RawDescriptionHelpFormatter, |
342 epilog='Here is the full set of builders we know about:' + | 342 epilog='Here is the full set of builders we know about:' + |
343 '\n '.join([''] + sorted(TEST_BUILDERS))) | 343 '\n '.join([''] + sorted(TEST_BUILDERS))) |
344 parser.add_argument('--actuals-base-url', | 344 parser.add_argument('--actuals-base-url', |
345 help=('base URL from which to read files containing JSON ' | 345 help=('base URL from which to read files containing JSON ' |
346 'summaries of actual GM results; defaults to ' | 346 'summaries of actual GM results; defaults to ' |
347 '%(default)s'), | 347 '%(default)s. To get a specific revision (useful for' |
| 348 'trybots) replace "svn" with "svn-history/r123".'), |
348 default='http://skia-autogen.googlecode.com/svn/gm-actual') | 349 default='http://skia-autogen.googlecode.com/svn/gm-actual') |
349 parser.add_argument('--actuals-filename', | 350 parser.add_argument('--actuals-filename', |
350 help=('filename (within builder-specific subdirectories ' | 351 help=('filename (within builder-specific subdirectories ' |
351 'of ACTUALS_BASE_URL) to read a summary of results ' | 352 'of ACTUALS_BASE_URL) to read a summary of results ' |
352 'from; defaults to %(default)s'), | 353 'from; defaults to %(default)s'), |
353 default='actual-results.json') | 354 default='actual-results.json') |
354 parser.add_argument('--add-new', action='store_true', | 355 parser.add_argument('--add-new', action='store_true', |
355 help=('in addition to the standard behavior of ' | 356 help=('in addition to the standard behavior of ' |
356 'updating expectations for failing tests, add ' | 357 'updating expectations for failing tests, add ' |
357 'expectations for tests which don\'t have ' | 358 'expectations for tests which don\'t have ' |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 except: | 450 except: |
450 exception_handler.RaiseExceptionOrContinue() | 451 exception_handler.RaiseExceptionOrContinue() |
451 else: | 452 else: |
452 try: | 453 try: |
453 raise _InternalException('expectations_json_file %s not found' % | 454 raise _InternalException('expectations_json_file %s not found' % |
454 expectations_json_file) | 455 expectations_json_file) |
455 except: | 456 except: |
456 exception_handler.RaiseExceptionOrContinue() | 457 exception_handler.RaiseExceptionOrContinue() |
457 | 458 |
458 exception_handler.ReportAllFailures() | 459 exception_handler.ReportAllFailures() |
OLD | NEW |