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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 return subprocess.call(cmds, env=local_env) | 116 return subprocess.call(cmds, env=local_env) |
117 | 117 |
118 def ProcessFrog(name): | 118 def ProcessFrog(name): |
119 ''' | 119 ''' |
120 build and test experimental frog build | 120 build and test experimental frog build |
121 ''' | 121 ''' |
122 print 'ProcessFrog' | 122 print 'ProcessFrog' |
123 has_shell=False | 123 has_shell=False |
124 if 'windows' in name: | 124 if 'windows' in name: |
125 os.environ['PATH'] = (os.path.join('C:', 'Program Files (x86)', 'nodejs') + | |
126 os.pathsep + os.environ['PATH']) | |
127 # In Windows we need to run in the shell, so that we have all the | 125 # In Windows we need to run in the shell, so that we have all the |
128 # environment variables available. | 126 # environment variables available. |
129 has_shell=True | 127 has_shell=True |
130 return subprocess.call([sys.executable, | 128 return subprocess.call([sys.executable, |
131 os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')], | 129 os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')], |
132 env=os.environ, shell=has_shell) | 130 env=os.environ, shell=has_shell) |
133 | 131 |
134 def main(): | 132 def main(): |
135 print 'main' | 133 print 'main' |
136 if len(sys.argv) == 0: | 134 if len(sys.argv) == 0: |
(...skipping 12 matching lines...) Expand all Loading... |
149 status = ProcessFrog(name) | 147 status = ProcessFrog(name) |
150 | 148 |
151 if status: | 149 if status: |
152 print '@@@STEP_FAILURE@@@' | 150 print '@@@STEP_FAILURE@@@' |
153 | 151 |
154 return status | 152 return status |
155 | 153 |
156 | 154 |
157 if __name__ == '__main__': | 155 if __name__ == '__main__': |
158 sys.exit(main()) | 156 sys.exit(main()) |
OLD | NEW |