OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
3 """ | 7 """ |
4 TestGyp.py: a testing framework for GYP integration tests. | 8 TestGyp.py: a testing framework for GYP integration tests. |
5 """ | 9 """ |
6 | 10 |
7 import os | 11 import os |
8 import re | 12 import re |
9 import shutil | 13 import shutil |
10 import stat | 14 import stat |
11 import sys | 15 import sys |
12 | 16 |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 """ | 539 """ |
536 format = kw.get('format') | 540 format = kw.get('format') |
537 if format: | 541 if format: |
538 del kw['format'] | 542 del kw['format'] |
539 else: | 543 else: |
540 format = os.environ.get('TESTGYP_FORMAT') | 544 format = os.environ.get('TESTGYP_FORMAT') |
541 for format_class in format_class_list: | 545 for format_class in format_class_list: |
542 if format == format_class.format: | 546 if format == format_class.format: |
543 return format_class(*args, **kw) | 547 return format_class(*args, **kw) |
544 raise Exception, "unknown format %r" % format | 548 raise Exception, "unknown format %r" % format |
OLD | NEW |