| OLD | NEW |
| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 if options.platform: | 90 if options.platform: |
| 91 command.extend(['--platform', options.platform]) | 91 command.extend(['--platform', options.platform]) |
| 92 if options.skipped: | 92 if options.skipped: |
| 93 command.extend(['--skipped', options.skipped]) | 93 command.extend(['--skipped', options.skipped]) |
| 94 if options.no_pixel_tests: | 94 if options.no_pixel_tests: |
| 95 command.append('--no-pixel-tests') | 95 command.append('--no-pixel-tests') |
| 96 if options.enable_wptserve: | 96 if options.enable_wptserve: |
| 97 command.append('--enable-wptserve') | 97 command.append('--enable-wptserve') |
| 98 if options.batch_size: | 98 if options.batch_size: |
| 99 command.extend(['--batch-size', options.batch_size]) | 99 command.extend(['--batch-size', options.batch_size]) |
| 100 if options.order: | |
| 101 command.extend(['--order', options.order]) | |
| 102 if options.seed: | |
| 103 command.extend(['--seed', options.seed]) | |
| 104 if options.run_part: | 100 if options.run_part: |
| 105 command.extend(['--run-part', options.run_part]) | 101 command.extend(['--run-part', options.run_part]) |
| 106 if options.builder_name: | 102 if options.builder_name: |
| 107 command.extend(['--builder-name', options.builder_name]) | 103 command.extend(['--builder-name', options.builder_name]) |
| 108 if options.build_number: | 104 if options.build_number: |
| 109 command.extend(['--build-number', options.build_number]) | 105 command.extend(['--build-number', options.build_number]) |
| 110 command.extend(['--master-name', slave_utils.GetActiveMaster() or '']) | 106 command.extend(['--master-name', slave_utils.GetActiveMaster() or '']) |
| 111 if options.step_name: | 107 if options.step_name: |
| 112 command.extend(['--step-name', options.step_name]) | 108 command.extend(['--step-name', options.step_name]) |
| 113 # On Windows, look for the target in an exact location. | 109 # On Windows, look for the target in an exact location. |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 options, args = option_parser.parse_args() | 265 options, args = option_parser.parse_args() |
| 270 options.build_dir = build_directory.GetBuildOutputDirectory() | 266 options.build_dir = build_directory.GetBuildOutputDirectory() |
| 271 | 267 |
| 272 # Disable pageheap checking except on Windows. | 268 # Disable pageheap checking except on Windows. |
| 273 if sys.platform != 'win32': | 269 if sys.platform != 'win32': |
| 274 options.enable_pageheap = False | 270 options.enable_pageheap = False |
| 275 return layout_test(options, args) | 271 return layout_test(options, args) |
| 276 | 272 |
| 277 if '__main__' == __name__: | 273 if '__main__' == __name__: |
| 278 sys.exit(main()) | 274 sys.exit(main()) |
| OLD | NEW |