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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

Issue 2813173002: webkitpy: Rework the JSON output flags. (Closed)
Patch Set: Small fixes Created 3 years, 8 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
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged
3 # Copyright (C) 2011 Apple Inc. All rights reserved. 3 # Copyright (C) 2011 Apple Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 optparse.make_option( 157 optparse.make_option(
158 '--driver-name', 158 '--driver-name',
159 type='string', 159 type='string',
160 help='Alternative driver binary to use'), 160 help='Alternative driver binary to use'),
161 optparse.make_option( 161 optparse.make_option(
162 '--full-results-html', 162 '--full-results-html',
163 action='store_true', 163 action='store_true',
164 default=False, 164 default=False,
165 help='Show all failures in results.html, rather than only regres sions'), 165 help='Show all failures in results.html, rather than only regres sions'),
166 optparse.make_option( 166 optparse.make_option(
167 '--json-test-results', 167 '--json-test-results', # New name from json_results _generator
168 action='store', 168 '--write-full-results-to', # Old argument name
169 help='Path to write the JSON test results to.'), 169 '--isolated-script-test-output', # Isolated API
170 help=('Path to write the JSON test results for *all* tests.')),
qyearsley 2017/04/12 19:28:15 Nit: parentheses after help= could be removed
mithro 2017/04/13 02:56:07 Done.
171 # FIXME(tansell): Remove this option if nobody is found who needs it .
172 optparse.make_option(
173 '--json-failing-test-results',
174 help=('Path to write the JSON test results for only *failing* te sts.')),
qyearsley 2017/04/12 19:28:15 I bet this could also be removed now, since I don'
mithro 2017/04/13 02:56:07 Yeah, lets leave it for now.
170 optparse.make_option( 175 optparse.make_option(
171 '--new-baseline', 176 '--new-baseline',
172 action='store_true', 177 action='store_true',
173 default=False, 178 default=False,
174 help=('Save generated results as new baselines into the *most-sp ecific-platform* ' 179 help=('Save generated results as new baselines into the *most-sp ecific-platform* '
175 "directory, overwriting whatever's already there. Equivale nt to " 180 "directory, overwriting whatever's already there. Equivale nt to "
176 '--reset-results --add-platform-exceptions')), 181 '--reset-results --add-platform-exceptions')),
177 optparse.make_option( 182 optparse.make_option(
178 '--new-test-results', 183 '--new-test-results',
179 action='store_true', 184 action='store_true',
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 default='', 464 default='',
460 help=('The name of the builder shown on the waterfall running th is script ' 465 help=('The name of the builder shown on the waterfall running th is script '
461 'e.g. WebKit.')), 466 'e.g. WebKit.')),
462 optparse.make_option( 467 optparse.make_option(
463 '--master-name', 468 '--master-name',
464 help='The name of the buildbot master.'), 469 help='The name of the buildbot master.'),
465 optparse.make_option( 470 optparse.make_option(
466 '--test-results-server', 471 '--test-results-server',
467 default='', 472 default='',
468 help='If specified, upload results json files to this appengine server.'), 473 help='If specified, upload results json files to this appengine server.'),
469 optparse.make_option(
470 '--write-full-results-to',
471 help=('If specified, copy full_results.json from the results dir to the '
472 'specified path.')),
473 ])) 474 ]))
474 475
475 option_parser = optparse.OptionParser() 476 option_parser = optparse.OptionParser()
476 477
477 for group_name, group_options in option_group_definitions: 478 for group_name, group_options in option_group_definitions:
478 option_group = optparse.OptionGroup(option_parser, group_name) 479 option_group = optparse.OptionGroup(option_parser, group_name)
479 option_group.add_options(group_options) 480 option_group.add_options(group_options)
480 option_parser.add_option_group(option_group) 481 option_parser.add_option_group(option_group)
481 482
482 return option_parser.parse_args(args) 483 return option_parser.parse_args(args)
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 _log.debug('\t%s', process) 603 _log.debug('\t%s', process)
603 604
604 return run_details 605 return run_details
605 606
606 finally: 607 finally:
607 printer.cleanup() 608 printer.cleanup()
608 609
609 if __name__ == '__main__': 610 if __name__ == '__main__':
610 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) 611 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr)
611 sys.exit(exit_code) 612 sys.exit(exit_code)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698