| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 |
| 3 # XXX Python script template | 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # XXX Describe what the script does here. | 5 # found in the LICENSE file. |
| 6 # | 6 |
| 7 __doc__ = """ |
| 8 gyptest.py -- test runner for GYP tests. |
| 9 """ |
| 7 | 10 |
| 8 import os | 11 import os |
| 9 import optparse | 12 import optparse |
| 10 import subprocess | 13 import subprocess |
| 11 import sys | 14 import sys |
| 12 | 15 |
| 13 class CommandRunner: | 16 class CommandRunner: |
| 14 """ | 17 """ |
| 15 Executor class for commands, including "commands" implemented by | 18 Executor class for commands, including "commands" implemented by |
| 16 Python functions. | 19 Python functions. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 report("No result from", no_result) | 231 report("No result from", no_result) |
| 229 | 232 |
| 230 if failed: | 233 if failed: |
| 231 return 1 | 234 return 1 |
| 232 else: | 235 else: |
| 233 return 0 | 236 return 0 |
| 234 | 237 |
| 235 | 238 |
| 236 if __name__ == "__main__": | 239 if __name__ == "__main__": |
| 237 sys.exit(main()) | 240 sys.exit(main()) |
| OLD | NEW |