Copy //third_party/WebKit/Tools/Script/wpt-* to //third_party/blink/tools/
This CL is a preparation to change references to them in build bots.
This CL has no behavior changes.
Bug: 829697
Change-Id: I3d69dbae6520e3b2c6ca95a7b3c05a7322eeaa0a
Reviewed-on: https://chromium-review.googlesource.com/1009543
Reviewed-by: Quinten Yearsley <[email protected]>
Reviewed-by: Robert Ma <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/master@{#550439}
diff --git a/third_party/blink/tools/wpt_import.py b/third_party/blink/tools/wpt_import.py
new file mode 100755
index 0000000..b833be2
--- /dev/null
+++ b/third_party/blink/tools/wpt_import.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env vpython
+# Copyright 2014 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.
+
+"""Pulls the latest revisions of the web-platform-tests."""
+
+import os
+import sys
+
+# Without abspath(), PathFinder can't find chromium_base correctly.
+sys.path.append(os.path.abspath(
+ os.path.join(os.path.dirname(__file__), '..', '..',
+ 'WebKit', 'Tools', 'Scripts')))
+from webkitpy.common import exit_codes
+from webkitpy.common.host import Host
+from webkitpy.w3c.test_importer import TestImporter
+
+
+def main():
+ host = Host()
+ importer = TestImporter(host)
+ try:
+ host.exit(importer.main())
+ except KeyboardInterrupt:
+ host.print_("Interrupted, exiting")
+ host.exit(exit_codes.INTERRUPTED_EXIT_STATUS)
+
+
+if __name__ == '__main__':
+ main()