OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client 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 # Enable 'with' statements in Python 2.5 | 6 # Enable 'with' statements in Python 2.5 |
7 from __future__ import with_statement | 7 from __future__ import with_statement |
8 | 8 |
9 import optparse | 9 import optparse |
10 import os.path | 10 import os.path |
11 import shutil | 11 import shutil |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 477 |
478 # Workaround for an annotator bug. | 478 # Workaround for an annotator bug. |
479 # TODO(bradnelson@google.com) remove when the bug is fixed. | 479 # TODO(bradnelson@google.com) remove when the bug is fixed. |
480 if status.ever_failed: | 480 if status.ever_failed: |
481 with Step('summary', status): | 481 with Step('summary', status): |
482 print 'There were failed stages.' | 482 print 'There were failed stages.' |
483 | 483 |
484 # Display a summary of the build. Useful when running outside the buildbot. | 484 # Display a summary of the build. Useful when running outside the buildbot. |
485 status.DisplayBuildStatus() | 485 status.DisplayBuildStatus() |
486 sys.exit(status.ReturnValue()) | 486 sys.exit(status.ReturnValue()) |
OLD | NEW |