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

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

Issue 9138042: Adds a 'webkit_lint' test step to the bots (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: '' Created 8 years, 11 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 | Annotate | Revision Log
Property Changes:
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
OLDNEW
(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())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698