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) |