| OLD | NEW |
| 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 Loading... |
| 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') |
| OLD | NEW |