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

Side by Side Diff: test/test262/list.py

Issue 2733843002: test262 roll (Closed)
Patch Set: in a comment, s/gn/gyp Created 3 years, 9 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
« no previous file with comments | « test/test262/harness-agent.js ('k') | test/test262/test262.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 the V8 project authors. All rights reserved. 2 # Copyright 2016 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 import tarfile 8 import tarfile
9 from itertools import chain 9 from itertools import chain
10 10
11 os.chdir(os.path.dirname(os.path.abspath(__file__))) 11 os.chdir(os.path.dirname(os.path.abspath(__file__)))
12 12
13 for root, dirs, files in chain(os.walk("data"), os.walk("harness")): 13 for root, dirs, files in chain(os.walk("data"), os.walk("harness")):
14 dirs[:] = [d for d in dirs if not d.endswith('.git')] 14 dirs[:] = [d for d in dirs if not d.endswith('.git')]
15 for name in files: 15 for name in files:
16 # These names are for gyp, which expects slashes on all platforms. 16 # These names are for gyp, which expects slashes on all platforms.
17 pathname = '/'.join(root.split(os.sep) + [name]) 17 pathname = '/'.join(root.split(os.sep) + [name])
18 # For gyp, quote the name in case it includes spaces 18 # For gyp, quote the name in case it includes spaces
19 if len(sys.argv) > 1 and sys.argv[1] == '--quoted': 19 if len(sys.argv) > 1 and sys.argv[1] == '--quoted':
20 pathname = '"' + pathname + '"' 20 pathname = '"' + pathname + '"'
21 # Temporary hack until we upgrade to gn swarming:
22 # gyp doesn't handle files containing $ in the name very well, so we just
23 # exclude them from the 'sources' list and hope that other changes cause
24 # the archive to be rebuilt.
25 if '$' in pathname: continue
21 print(pathname) 26 print(pathname)
OLDNEW
« no previous file with comments | « test/test262/harness-agent.js ('k') | test/test262/test262.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698