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

Side by Side Diff: native_client_sdk/src/build_tools/buildbot_run.py

Issue 16022005: [NaCl SDK] Add keyboard interrupt handlers for python scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Main entry point for the NaCl SDK buildbot. 6 """Main entry point for the NaCl SDK buildbot.
7 7
8 The entry point used to be build_sdk.py itself, but we want 8 The entry point used to be build_sdk.py itself, but we want
9 to be able to simplify build_sdk (for example separating out 9 to be able to simplify build_sdk (for example separating out
10 the test code into test_sdk) and change its default behaviour 10 the test code into test_sdk) and change its default behaviour
(...skipping 30 matching lines...) Expand all
41 41
42 42
43 def main(args): 43 def main(args):
44 StepRunUnittests() 44 StepRunUnittests()
45 StepBuildSDK(args) 45 StepBuildSDK(args)
46 StepTestSDK() 46 StepTestSDK()
47 return 0 47 return 0
48 48
49 49
50 if __name__ == '__main__': 50 if __name__ == '__main__':
51 sys.exit(main(sys.argv[1:])) 51 try:
52 sys.exit(main(sys.argv[1:]))
53 except KeyboardInterrupt:
54 buildbot_common.ErrorExit('buildbot_run: interrupted')
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | native_client_sdk/src/build_tools/sdk_tools/download.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698