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

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: '' 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
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,32 @@
+#!/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
+
+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')
+ # TODO(dpranke): '--chromium' shouldn't be needed.
+ command = [run_webkit_tests, '--lint-test-files', '--chromium']
+ return slave_utils.RunPythonCommandInBuildDir(build_dir, options.target,
+ command)
+
+def main():
+ option_parser = optparse.OptionParser()
+ 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

Powered by Google App Engine
This is Rietveld 408576698