| OLD | NEW |
| 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 app bundles are built correctly. | 8 Verifies that app bundles are built correctly. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 from __future__ import print_function |
| 12 |
| 11 import TestGyp | 13 import TestGyp |
| 12 | 14 |
| 13 import os | 15 import os |
| 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 | 22 |
| 21 def ls(path): | 23 def ls(path): |
| 22 '''Returns a list of all files in a directory, relative to the directory.''' | 24 '''Returns a list of all files in a directory, relative to the directory.''' |
| 23 result = [] | 25 result = [] |
| 24 for dirpath, _, files in os.walk(path): | 26 for dirpath, _, files in os.walk(path): |
| 25 for f in files: | 27 for f in files: |
| 26 result.append(os.path.join(dirpath, f)[len(path) + 1:]) | 28 result.append(os.path.join(dirpath, f)[len(path) + 1:]) |
| 27 return result | 29 return result |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 chdir='framework'))) != \ | 71 chdir='framework'))) != \ |
| 70 set(['Versions/A/Test Framework', | 72 set(['Versions/A/Test Framework', |
| 71 'Versions/A/Resources/Info.plist', | 73 'Versions/A/Resources/Info.plist', |
| 72 'Versions/A/Resources/English.lproj/InfoPlist.strings', | 74 'Versions/A/Resources/English.lproj/InfoPlist.strings', |
| 73 'Test Framework', | 75 'Test Framework', |
| 74 'Versions/A/Libraries/empty.c', # Written by a gyp action. | 76 'Versions/A/Libraries/empty.c', # Written by a gyp action. |
| 75 ]): | 77 ]): |
| 76 test.fail_test() | 78 test.fail_test() |
| 77 | 79 |
| 78 test.pass_test() | 80 test.pass_test() |
| OLD | NEW |