01cc4f9fbb
A couple infrastructure changes went into this patch: - test262 changed from expecting $ to $262 - upstream-local-tests.sh gets a command-line parameter for ease of use - Fixed up the FAIL_SLOPPY infrastructure, which seems to have bit-rotted - Inserted a terrible hack to get around test262 tests with a $ in the name Drive-by fix for the length of Intl.DateTimeFormat.prototype.format R=adamk Review-Url: https://codereview.chromium.org/2733843002 Cr-Commit-Position: refs/heads/master@{#43749}
27 lines
1.0 KiB
Python
Executable File
27 lines
1.0 KiB
Python
Executable File
#!/usr/bin/env python
|
|
# Copyright 2016 the V8 project authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import os
|
|
import sys
|
|
import tarfile
|
|
from itertools import chain
|
|
|
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
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.
|
|
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 + '"'
|
|
# Temporary hack until we upgrade to gn swarming:
|
|
# gyp doesn't handle files containing $ in the name very well, so we just
|
|
# exclude them from the 'sources' list and hope that other changes cause
|
|
# the archive to be rebuilt.
|
|
if '$' in pathname: continue
|
|
print(pathname)
|