| 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 """Entry point for the dartium buildbots. | 6 """Entry point for the dartium buildbots. |
| 7 | 7 |
| 8 This script is called from buildbot and reports results using the buildbot | 8 This script is called from buildbot and reports results using the buildbot |
| 9 annotation scheme. | 9 annotation scheme. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 import os | 12 import os |
| 13 import sys | 13 import sys |
| 14 | 14 |
| 15 from common import chromium_utils | 15 from common import chromium_utils |
| 16 | 16 |
| 17 def main(): | 17 def main(): |
| 18 builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='') | 18 builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='') |
| 19 | 19 |
| 20 # Temporary until 1.6 ships on stable. | 20 # Temporary until 1.6 ships on stable. |
| 21 if builder_name.endswith('-be') or builder_name.endswith("-dev"): | 21 if builder_name.endswith('-be') or builder_name.endswith("-dev"): |
| 22 script = 'src/dart/tools/dartium/buildbot_annotated_steps.py' | 22 script = 'src/dart/tools/dartium/buildbot_annotated_steps.py' |
| 23 else: | 23 else: |
| 24 script = 'src/dartium_tools/buildbot_annotated_steps.py' | 24 script = 'src/dartium_tools/buildbot_annotated_steps.py' |
| 25 chromium_utils.RunCommand([sys.executable, script]) | 25 result = chromium_utils.RunCommand([sys.executable, script]) |
| 26 | 26 |
| 27 if result: |
| 28 print 'Running annotated steps % failed' % script |
| 29 return 1 |
| 27 # BIG HACK | 30 # BIG HACK |
| 28 # Normal ninja clobbering does not work due to symlinks/python on windows | 31 # Normal ninja clobbering does not work due to symlinks/python on windows |
| 29 # Full clobbering before building does not work since it will destroy | 32 # Full clobbering before building does not work since it will destroy |
| 30 # the ninja build files | 33 # the ninja build files |
| 31 # So we basically clobber at the end here | 34 # So we basically clobber at the end here |
| 32 if chromium_utils.IsWindows() and 'full' in builder_name: | 35 if chromium_utils.IsWindows() and 'full' in builder_name: |
| 33 chromium_utils.RemoveDirectory('src/out') | 36 chromium_utils.RemoveDirectory('src/out') |
| 34 return 0 | 37 return 0 |
| 35 | 38 |
| 36 if __name__ == '__main__': | 39 if __name__ == '__main__': |
| 37 sys.exit(main()) | 40 sys.exit(main()) |
| OLD | NEW |