OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Pulls the latest revisions of the web-platform-tests or csswg-test repos.""" | 6 """Pulls the latest revisions of the web-platform-tests or csswg-test repos.""" |
7 | 7 |
| 8 from webkitpy.common import exit_codes |
8 from webkitpy.common import version_check | 9 from webkitpy.common import version_check |
9 from webkitpy.common.host import Host | 10 from webkitpy.common.host import Host |
10 from webkitpy.w3c.test_importer import TestImporter | 11 from webkitpy.w3c.test_importer import TestImporter |
11 | 12 |
12 | 13 |
13 if __name__ == '__main__': | 14 if __name__ == '__main__': |
14 host = Host() | 15 host = Host() |
15 importer = TestImporter(host) | 16 importer = TestImporter(host) |
16 try: | 17 try: |
17 host.exit(importer.main()) | 18 host.exit(importer.main()) |
18 except KeyboardInterrupt: | 19 except KeyboardInterrupt: |
19 host.print_("Interrupted, exiting") | 20 host.print_("Interrupted, exiting") |
20 host.exit(130) | 21 host.exit(exit_codes.INTERRUPTED_EXIT_STATUS) |
OLD | NEW |