| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #!/usr/bin/python | 5 #!/usr/bin/python |
| 6 | 6 |
| 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 8 # Use of this source code is governed by a BSD-style license that can be | 8 # Use of this source code is governed by a BSD-style license that can be |
| 9 # found in the LICENSE file. | 9 # found in the LICENSE file. |
| 10 | 10 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 print 'main' | 180 print 'main' |
| 181 if len(sys.argv) == 0: | 181 if len(sys.argv) == 0: |
| 182 print 'Script pathname not known, giving up.' | 182 print 'Script pathname not known, giving up.' |
| 183 return 1 | 183 return 1 |
| 184 | 184 |
| 185 scriptdir = os.path.dirname(sys.argv[0]) | 185 scriptdir = os.path.dirname(sys.argv[0]) |
| 186 # Get at the top-level directory. This script is in client/tools | 186 # Get at the top-level directory. This script is in client/tools |
| 187 os.chdir(os.path.abspath(os.path.join(scriptdir, os.pardir, os.pardir))) | 187 os.chdir(os.path.abspath(os.path.join(scriptdir, os.pardir, os.pardir))) |
| 188 | 188 |
| 189 (name, version, component, mode, platform) = GetBuildInfo() | 189 (name, version, component, mode, platform) = GetBuildInfo() |
| 190 if name == 'dart-editor': | 190 if name.startswith('dart-editor'): |
| 191 status = ProcessTools(mode, name, version) | 191 status = ProcessTools(mode, name, version) |
| 192 #TODO(sigmund): remove this indirection once we update our bots | 192 #TODO(sigmund): remove this indirection once we update our bots |
| 193 elif name.startswith('frog'): | 193 elif name.startswith('frog'): |
| 194 status = ProcessFrog() | 194 status = ProcessFrog() |
| 195 else: | 195 else: |
| 196 status = ProcessDartClientTests(component, mode, platform, name) | 196 status = ProcessDartClientTests(component, mode, platform, name) |
| 197 | 197 |
| 198 if status: | 198 if status: |
| 199 print '@@@STEP_FAILURE@@@' | 199 print '@@@STEP_FAILURE@@@' |
| 200 | 200 |
| 201 return status | 201 return status |
| 202 | 202 |
| 203 | 203 |
| 204 if __name__ == '__main__': | 204 if __name__ == '__main__': |
| 205 sys.exit(main()) | 205 sys.exit(main()) |
| OLD | NEW |