| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 136       env=os.environ, shell=has_shell) | 136       env=os.environ, shell=has_shell) | 
| 137 | 137 | 
| 138 def FixJavaHome(): | 138 def FixJavaHome(): | 
| 139   buildbot_javahome = os.getenv('BUILDBOT_JAVA_HOME') | 139   buildbot_javahome = os.getenv('BUILDBOT_JAVA_HOME') | 
| 140   if buildbot_javahome: | 140   if buildbot_javahome: | 
| 141     current_pwd = os.getenv('PWD') | 141     current_pwd = os.getenv('PWD') | 
| 142     java_home = os.path.join(current_pwd, buildbot_javahome) | 142     java_home = os.path.join(current_pwd, buildbot_javahome) | 
| 143     os.environ['JAVA_HOME'] = java_home | 143     os.environ['JAVA_HOME'] = java_home | 
| 144     print 'Setting java home to' | 144     print 'Setting java home to' | 
| 145     print java_home | 145     print java_home | 
|  | 146     sys.stdout.flush() | 
| 146 | 147 | 
| 147 def ClobberBuilder(): | 148 def ClobberBuilder(): | 
| 148   """ Clobber the builder before we do the build. | 149   """ Clobber the builder before we do the build. | 
| 149   Args: |  | 
| 150      - mode: either 'debug' or 'release' |  | 
| 151   """ | 150   """ | 
| 152   cmd = [sys.executable, | 151   cmd = [sys.executable, | 
| 153          './tools/clean_output_directory.py'] | 152          './tools/clean_output_directory.py'] | 
| 154   print 'Clobbering %s' % (' '.join(cmd)) | 153   print 'Clobbering %s' % (' '.join(cmd)) | 
| 155   return subprocess.call(cmd) | 154   return subprocess.call(cmd) | 
| 156 | 155 | 
| 157 def GetShouldClobber(): | 156 def GetShouldClobber(): | 
| 158   return os.environ.get(BUILDER_CLOBBER) == "1" | 157   return os.environ.get(BUILDER_CLOBBER) == "1" | 
| 159 | 158 | 
| 160 def RunDart(scriptPath): | 159 def RunDart(scriptPath): | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 220     status = ProcessBot(name, 'compiler') | 219     status = ProcessBot(name, 'compiler') | 
| 221 | 220 | 
| 222   if status: | 221   if status: | 
| 223     print '@@@STEP_FAILURE@@@' | 222     print '@@@STEP_FAILURE@@@' | 
| 224 | 223 | 
| 225   return status | 224   return status | 
| 226 | 225 | 
| 227 | 226 | 
| 228 if __name__ == '__main__': | 227 if __name__ == '__main__': | 
| 229   sys.exit(main()) | 228   sys.exit(main()) | 
| OLD | NEW | 
|---|