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

Side by Side Diff: scripts/slave/chromium/layout_test_wrapper.py

Issue 2459983002: Reland of Add initial CL for RandomOrder chromium.fyi bot (Closed)
Patch Set: Make --order default None Created 4 years, 1 month 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """A wrapper script to run layout tests on the buildbots. 6 """A wrapper script to run layout tests on the buildbots.
7 7
8 Runs the run-webkit-tests script found in third_party/WebKit/Tools/Scripts above 8 Runs the run-webkit-tests script found in third_party/WebKit/Tools/Scripts above
9 this script. For a complete list of command-line options, pass '--help' on the 9 this script. For a complete list of command-line options, pass '--help' on the
10 command line. 10 command line.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 if options.platform: 89 if options.platform:
90 command.extend(['--platform', options.platform]) 90 command.extend(['--platform', options.platform])
91 if options.skipped: 91 if options.skipped:
92 command.extend(['--skipped', options.skipped]) 92 command.extend(['--skipped', options.skipped])
93 if options.no_pixel_tests: 93 if options.no_pixel_tests:
94 command.append('--no-pixel-tests') 94 command.append('--no-pixel-tests')
95 if options.enable_wptserve: 95 if options.enable_wptserve:
96 command.append('--enable-wptserve') 96 command.append('--enable-wptserve')
97 if options.batch_size: 97 if options.batch_size:
98 command.extend(['--batch-size', options.batch_size]) 98 command.extend(['--batch-size', options.batch_size])
99 if options.order:
100 command.extend(['--order', options.order])
101 if options.seed:
102 command.extend(['--seed', options.seed])
99 if options.run_part: 103 if options.run_part:
100 command.extend(['--run-part', options.run_part]) 104 command.extend(['--run-part', options.run_part])
101 if options.builder_name: 105 if options.builder_name:
102 command.extend(['--builder-name', options.builder_name]) 106 command.extend(['--builder-name', options.builder_name])
103 if options.build_number: 107 if options.build_number:
104 command.extend(['--build-number', options.build_number]) 108 command.extend(['--build-number', options.build_number])
105 command.extend(['--master-name', slave_utils.GetActiveMaster() or '']) 109 command.extend(['--master-name', slave_utils.GetActiveMaster() or ''])
106 if options.step_name: 110 if options.step_name:
107 command.extend(['--step-name', options.step_name]) 111 command.extend(['--step-name', options.step_name])
108 # On Windows, look for the target in an exact location. 112 # On Windows, look for the target in an exact location.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 help='option for handling Skipped, passed through to run-webkit-tests.') 199 help='option for handling Skipped, passed through to run-webkit-tests.')
196 option_parser.add_option('--no-pixel-tests', action='store_true', 200 option_parser.add_option('--no-pixel-tests', action='store_true',
197 default=False, 201 default=False,
198 help='disable pixel-to-pixel PNG comparisons') 202 help='disable pixel-to-pixel PNG comparisons')
199 option_parser.add_option('--enable-pageheap', action='store_true', 203 option_parser.add_option('--enable-pageheap', action='store_true',
200 default=False, help='Enable page heap checking') 204 default=False, help='Enable page heap checking')
201 option_parser.add_option('--batch-size', 205 option_parser.add_option('--batch-size',
202 default=None, 206 default=None,
203 help=('Run a the tests in batches (n), after every ' 207 help=('Run a the tests in batches (n), after every '
204 'n tests, the test shell is relaunched.')) 208 'n tests, the test shell is relaunched.'))
209 option_parser.add_option('--order', action='store', default=None,
210 help=('Determine the order in which the test cases wi ll be run. '
211 '"none" == use the order in which the tests wer e listed '
212 'either in arguments or test list, '
213 '"natural" == use the natural order (default), '
214 '"random" == pseudo-random order. Seed can be s pecified '
215 'via --seed, otherwise a default seed will be u sed.')),
216 option_parser.add_option('--seed', type='int', default=None,
217 help=('Seed to use for random test order. '
218 'Only applicable in combination with --order=ra ndom.')),
qyearsley 2016/10/28 22:41:05 Note, fix is here
205 option_parser.add_option('--run-part', 219 option_parser.add_option('--run-part',
206 default=None, 220 default=None,
207 help=('Run a specified part (n:l), the nth of lth' 221 help=('Run a specified part (n:l), the nth of lth'
208 ', of the layout tests')) 222 ', of the layout tests'))
209 option_parser.add_option('--builder-name', 223 option_parser.add_option('--builder-name',
210 default=None, 224 default=None,
211 help='The name of the builder running this script.') 225 help='The name of the builder running this script.')
212 option_parser.add_option('--step-name', 226 option_parser.add_option('--step-name',
213 default=None, 227 default=None,
214 help='The name of the step running this script.') 228 help='The name of the step running this script.')
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 options, args = option_parser.parse_args() 278 options, args = option_parser.parse_args()
265 options.build_dir = build_directory.GetBuildOutputDirectory() 279 options.build_dir = build_directory.GetBuildOutputDirectory()
266 280
267 # Disable pageheap checking except on Windows. 281 # Disable pageheap checking except on Windows.
268 if sys.platform != 'win32': 282 if sys.platform != 'win32':
269 options.enable_pageheap = False 283 options.enable_pageheap = False
270 return layout_test(options, args) 284 return layout_test(options, args)
271 285
272 if '__main__' == __name__: 286 if '__main__' == __name__:
273 sys.exit(main()) 287 sys.exit(main())
OLDNEW
« no previous file with comments | « masters/master.chromium.fyi/slaves.cfg ('k') | scripts/slave/recipe_modules/chromium_tests/chromium_fyi.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698