| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 |
| 4 """Shared process-related utility functions.""" | 5 """Shared process-related utility functions.""" |
| 5 | 6 |
| 6 import errno | 7 import errno |
| 7 import os | 8 import os |
| 8 import subprocess | 9 import subprocess |
| 9 import sys | 10 import sys |
| 10 | 11 |
| 11 class CommandNotFound(Exception): pass | 12 class CommandNotFound(Exception): pass |
| 12 | 13 |
| 13 | 14 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 break | 213 break |
| 213 | 214 |
| 214 # Make sure the process terminates. | 215 # Make sure the process terminates. |
| 215 for i in xrange(command_num): | 216 for i in xrange(command_num): |
| 216 procs[i].wait() | 217 procs[i].wait() |
| 217 | 218 |
| 218 if not verbose: | 219 if not verbose: |
| 219 out.close() | 220 out.close() |
| 220 | 221 |
| 221 return [(procs[i].returncode, outputs[i]) for i in xrange(command_num)] | 222 return [(procs[i].returncode, outputs[i]) for i in xrange(command_num)] |
| OLD | NEW |