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

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

Issue 709603005: Limit the layout_test batch size for *SAN builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py ('k') | 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 # 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 for group_name, group_options in option_group_definitions: 293 for group_name, group_options in option_group_definitions:
294 option_group = optparse.OptionGroup(option_parser, group_name) 294 option_group = optparse.OptionGroup(option_parser, group_name)
295 option_group.add_options(group_options) 295 option_group.add_options(group_options)
296 option_parser.add_option_group(option_group) 296 option_parser.add_option_group(option_group)
297 297
298 return option_parser.parse_args(args) 298 return option_parser.parse_args(args)
299 299
300 300
301 def _set_up_derived_options(port, options, args): 301 def _set_up_derived_options(port, options, args):
302 """Sets the options values that depend on other options values.""" 302 """Sets the options values that depend on other options values."""
303 if options.batch_size is None:
304 options.batch_size = port.default_batch_size()
305
303 if not options.child_processes: 306 if not options.child_processes:
304 options.child_processes = os.environ.get("WEBKIT_TEST_CHILD_PROCESSES", 307 options.child_processes = os.environ.get("WEBKIT_TEST_CHILD_PROCESSES",
305 str(port.default_child_processe s())) 308 str(port.default_child_processe s()))
306 if not options.max_locked_shards: 309 if not options.max_locked_shards:
307 options.max_locked_shards = int(os.environ.get("WEBKIT_TEST_MAX_LOCKED_S HARDS", 310 options.max_locked_shards = int(os.environ.get("WEBKIT_TEST_MAX_LOCKED_S HARDS",
308 str(port.default_max_lock ed_shards()))) 311 str(port.default_max_lock ed_shards())))
309 312
310 if not options.configuration: 313 if not options.configuration:
311 options.configuration = port.default_configuration() 314 options.configuration = port.default_configuration()
312 315
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 printer.print_config(port.results_directory()) 379 printer.print_config(port.results_directory())
377 380
378 run_details = manager.run(args) 381 run_details = manager.run(args)
379 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) 382 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code)
380 return run_details 383 return run_details
381 finally: 384 finally:
382 printer.cleanup() 385 printer.cleanup()
383 386
384 if __name__ == '__main__': 387 if __name__ == '__main__':
385 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) 388 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698