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

Side by Side Diff: third_party/WebKit/Tools/Scripts/wpt-import

Issue 2800853003: webkitpy: Unify the exit status codes. (Closed)
Patch Set: webkitpy: Unify the exit status codes. Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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)
OLDNEW
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698