| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/env python |
| 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 |
| 4 # found in the LICENSE file. |
| 5 |
| 6 """A wrapper script to check the test_expectations.txt file for errors.""" |
| 7 |
| 8 import optparse |
| 9 import os |
| 10 |
| 11 from common import chromium_utils |
| 12 from slave import slave_utils |
| 13 |
| 14 |
| 15 def layout_test(options, args): |
| 16 """Parse options and call run_webkit_tests.py, using Python from the tree.""" |
| 17 build_dir = os.path.abspath(options.build_dir) |
| 18 webkit_tests_dir = chromium_utils.FindUpward(build_dir, |
| 19 'webkit', 'tools', 'layout_tests') |
| 20 run_webkit_tests = os.path.join(webkit_tests_dir, 'run_webkit_tests.py') |
| 21 # TODO(dpranke): '--chromium' shouldn't be needed. |
| 22 command = [run_webkit_tests, '--lint-test-files', '--chromium'] |
| 23 return slave_utils.RunPythonCommandInBuildDir(build_dir, options.target, |
| 24 command) |
| 25 |
| 26 def main(): |
| 27 option_parser = optparse.OptionParser() |
| 28 options, args = option_parser.parse_args() |
| 29 return layout_test(options, args) |
| 30 |
| 31 if '__main__' == __name__: |
| 32 sys.exit(main()) |
| OLD | NEW |