blob: be0507290073179d23b2100ff71d4a7637fe24ba [file] [log] [blame]
#!/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."""
from blinkpy.common import exit_codes
from blinkpy.common.host import Host
from blinkpy.common.path_finder import add_depot_tools_dir_to_os_path
from blinkpy.w3c.test_importer import TestImporter
def main():
add_depot_tools_dir_to_os_path()
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()