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

Unified Diff: test/test262/list.py

Issue 2435783002: test262 roll (Closed)
Patch Set: Change gyp file Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | test/test262/test262.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test262/list.py
diff --git a/test/test262/list.py b/test/test262/list.py
index 0e82cb59adb772b3c59a1229f6a46e1def981899..9b36ce789c5baa217d118ecb5e5294c86336ffa7 100755
--- a/test/test262/list.py
+++ b/test/test262/list.py
@@ -4,6 +4,7 @@
# found in the LICENSE file.
import os
+import sys
import tarfile
from itertools import chain
@@ -13,4 +14,8 @@ for root, dirs, files in chain(os.walk("data"), os.walk("harness")):
dirs[:] = [d for d in dirs if not d.endswith('.git')]
for name in files:
# These names are for gyp, which expects slashes on all platforms.
- print('/'.join(root.split(os.sep) + [name]))
+ pathname = '/'.join(root.split(os.sep) + [name])
+ # For gyp, quote the name in case it includes spaces
+ if len(sys.argv) > 1 and sys.argv[1] == '--quoted':
+ pathname = '"' + pathname + '"'
+ print(pathname)
« no previous file with comments | « DEPS ('k') | test/test262/test262.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698