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

Side by Side Diff: trunk/test/variables/gyptest-commands-ignore-env.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/env python 1 #!/usr/bin/env 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 Test that environment variables are ignored when --ignore-environment is 8 Test that environment variables are ignored when --ignore-environment is
5 specified. 9 specified.
6 """ 10 """
7 11
8 import os 12 import os
9 13
10 import TestGyp 14 import TestGyp
11 15
12 os.environ['GYP_DEFINES'] = 'FOO=BAR' 16 os.environ['GYP_DEFINES'] = 'FOO=BAR'
(...skipping 25 matching lines...) Expand all
38 # checked-in UNIX endings ('\n'). 42 # checked-in UNIX endings ('\n').
39 43
40 contents = test.read('commands.gypd').replace('\r\n', '\n') 44 contents = test.read('commands.gypd').replace('\r\n', '\n')
41 expect = test.read('commands.gypd.golden') 45 expect = test.read('commands.gypd.golden')
42 if not test.match(contents, expect): 46 if not test.match(contents, expect):
43 print "Unexpected contents of `commands.gypd'" 47 print "Unexpected contents of `commands.gypd'"
44 self.diff(expect, contents, 'commands.gypd ') 48 self.diff(expect, contents, 'commands.gypd ')
45 test.fail_test() 49 test.fail_test()
46 50
47 test.pass_test() 51 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698