blob: 67a22fb2a25c6559c17bfef212d9fdbdbfa4a821 [file] [log] [blame]
Weizhong Xia6f1f80e12022-06-11 00:36:261#!/usr/bin/env vpython3
Avi Drissman047c7dc2022-09-27 23:23:142# Copyright 2014 The Chromium Authors
Kent Tamura9f6e52e92018-04-13 00:42:123# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
Kent Tamura9f6e52e92018-04-13 00:42:125"""Pulls the latest revisions of the web-platform-tests."""
6
Kent Tamuradd01f0e2018-04-24 02:32:367from blinkpy.common import exit_codes
8from blinkpy.common.host import Host
Robert Ma659eb2c2018-10-01 15:36:429from blinkpy.common.path_finder import add_depot_tools_dir_to_os_path
Kent Tamurac1e4c412018-04-19 02:01:3610from blinkpy.w3c.test_importer import TestImporter
Kent Tamura9f6e52e92018-04-13 00:42:1211
12
13def main():
Robert Ma659eb2c2018-10-01 15:36:4214 add_depot_tools_dir_to_os_path()
Kent Tamura9f6e52e92018-04-13 00:42:1215 host = Host()
16 importer = TestImporter(host)
17 try:
18 host.exit(importer.main())
19 except KeyboardInterrupt:
20 host.print_("Interrupted, exiting")
21 host.exit(exit_codes.INTERRUPTED_EXIT_STATUS)
22
23
24if __name__ == '__main__':
25 main()