Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: trunk/test/lib/TestGyp.py

Issue 306051: Add AUTHORS and LICENSE files, and copyright headers to relevant source files... (Closed) Base URL: http://gyp.googlecode.com/svn/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698