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

Side by Side Diff: test/mac/gyptest-non-strs-flattened-to-env.py

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 Google Inc. All rights reserved. 3 # Copyright (c) 2012 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """ 7 """
8 Verifies that list xcode_settings are flattened before being exported to the 8 Verifies that list xcode_settings are flattened before being exported to the
9 environment. 9 environment.
10 """ 10 """
11 11
12 from __future__ import print_function
13
12 import TestGyp 14 import TestGyp
13 15
14 import sys 16 import sys
15 17
16 if sys.platform == 'darwin': 18 if sys.platform == 'darwin':
17 print "This test is currently disabled: https://crbug.com/483696." 19 print("This test is currently disabled: https://crbug.com/483696.")
18 sys.exit(0) 20 sys.exit(0)
19 21
20 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) 22 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
21 23
22 CHDIR = 'non-strs-flattened-to-env' 24 CHDIR = 'non-strs-flattened-to-env'
23 INFO_PLIST_PATH = 'Test.app/Contents/Info.plist' 25 INFO_PLIST_PATH = 'Test.app/Contents/Info.plist'
24 26
25 test.run_gyp('test.gyp', chdir=CHDIR) 27 test.run_gyp('test.gyp', chdir=CHDIR)
26 test.build('test.gyp', test.ALL, chdir=CHDIR) 28 test.build('test.gyp', test.ALL, chdir=CHDIR)
27 info_plist = test.built_file_path(INFO_PLIST_PATH, chdir=CHDIR) 29 info_plist = test.built_file_path(INFO_PLIST_PATH, chdir=CHDIR)
28 test.must_exist(info_plist) 30 test.must_exist(info_plist)
29 test.must_contain(info_plist, '''\ 31 test.must_contain(info_plist, '''\
30 \t<key>My Variable</key> 32 \t<key>My Variable</key>
31 \t<string>some expansion</string>''') 33 \t<string>some expansion</string>''')
32 test.must_contain(info_plist, '''\ 34 test.must_contain(info_plist, '''\
33 \t<key>CFlags</key> 35 \t<key>CFlags</key>
34 \t<string>-fstack-protector-all -fno-strict-aliasing -DS="A Space"</string>''') 36 \t<string>-fstack-protector-all -fno-strict-aliasing -DS="A Space"</string>''')
35 37
36 test.pass_test() 38 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698