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

Unified Diff: Tools/Scripts/check-blink-deps

Issue 14793019: Local Rietveld TryServer testing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | « Source/wtf/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/check-blink-deps
diff --git a/Tools/Scripts/move-layout-tests b/Tools/Scripts/check-blink-deps
similarity index 64%
copy from Tools/Scripts/move-layout-tests
copy to Tools/Scripts/check-blink-deps
index 5cee8c427d7dea4f30ec58261dd631ec36fe9010..db59ac7cdde90a12c2615028f28c4bbdd658614d 100755
--- a/Tools/Scripts/move-layout-tests
+++ b/Tools/Scripts/check-blink-deps
@@ -11,9 +11,6 @@
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
-# * Neither the name of Google Inc. nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
@@ -27,8 +24,30 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+"""A utility script for running Chromium's dependency checker script on Blink."""
+
+import os
+import subprocess
import sys
-from webkitpy.layout_tests import layout_tests_mover
+def show_help():
+ print 'Usage: %s [dir=Source]' % os.path.basename(sys.argv[0])
+
+def main():
+ start_dir = None
+ if len(sys.argv) > 1:
+ start_dir = sys.argv[1]
+
+ if start_dir == '--help':
+ show_help()
+ return
+
+ root_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
+ if not start_dir:
+ start_dir = os.path.join(root_dir, 'Source')
+
+ check_deps = os.path.realpath(os.path.join(root_dir, os.pardir, os.pardir, 'tools', 'checkdeps', 'checkdeps.py'))
+ subprocess.call([sys.executable, check_deps, '--root', root_dir, start_dir])
-sys.exit(layout_tests_mover.main(sys.argv[1:]))
+if '__main__' == __name__:
+ main()
« no previous file with comments | « Source/wtf/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698