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

Unified 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: fix script 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/master/factory/chromium_factory.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/chromium/lint_test_files_wrapper.py
===================================================================
--- scripts/slave/chromium/lint_test_files_wrapper.py (revision 0)
+++ scripts/slave/chromium/lint_test_files_wrapper.py (revision 0)
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""A wrapper script to check the test_expectations.txt file for errors."""
+
+import optparse
+import os
+import sys
+
+from common import chromium_utils
+from slave import slave_utils
+
+
+def layout_test(options, args):
+ """Parse options and call run_webkit_tests.py, using Python from the tree."""
+ build_dir = os.path.abspath(options.build_dir)
+ webkit_tests_dir = chromium_utils.FindUpward(build_dir,
+ 'webkit', 'tools', 'layout_tests')
+ run_webkit_tests = os.path.join(webkit_tests_dir, 'run_webkit_tests.py')
+ command = [run_webkit_tests, '--lint-test-files', '--chromium']
+
+ return slave_utils.RunPythonCommandInBuildDir(build_dir, options.target,
+ command)
+
+def main():
+ option_parser = optparse.OptionParser()
+ option_parser.add_option('', '--build-dir', default='webkit',
+ help='path to main build directory (the parent of '
+ 'the Release or Debug directory)')
+
+ # Note that --target isn't needed for --lint-test-files, but the
+ # RunPythonCommandInBuildDir() will get upset if we don't say something.
+ option_parser.add_option('', '--target', default='release',
+ help='DumpRenderTree build configuration (Release or Debug)')
+
+ options, args = option_parser.parse_args()
+ return layout_test(options, args)
+
+if '__main__' == __name__:
+ sys.exit(main())
Property changes on: scripts/slave/chromium/lint_test_files_wrapper.py
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
« no previous file with comments | « scripts/master/factory/chromium_factory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698