Skip intl tests from test262 when intl support is disabled.

Skips the whole intl directory if intl support is disabled through the test driver.

One test outside the intl directory is skipped separately. It will be handled in an extra CL.

R=jochen@chromium.org, mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/23792008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16854 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 06be8bf0
......@@ -36,6 +36,9 @@ def FAIL_OK = FAIL, OKAY
# V8 Bug: http://code.google.com/p/v8/issues/detail?id=691
11.2.3-3_3: FAIL
# TODO(jochen): Needs to be skipped only in noi18n mode.
15.5.4.9_CE: SKIP
######################## NEEDS INVESTIGATION ###########################
# These test failures are specific to the intl402 suite and need investigation
......
......@@ -59,6 +59,8 @@ class Test262TestSuite(testsuite.TestSuite):
for dirname, dirs, files in os.walk(self.testroot):
for dotted in [x for x in dirs if x.startswith(".")]:
dirs.remove(dotted)
if context.noi18n and "intl402" in dirs:
dirs.remove("intl402")
dirs.sort()
files.sort()
for filename in files:
......
......@@ -358,7 +358,8 @@ def Execute(arch, mode, args, options, suites, workspace):
mode_flags, options.verbose,
timeout, options.isolates,
options.command_prefix,
options.extra_flags)
options.extra_flags,
False)
# Find available test suites and read test cases from them.
variables = {
......
......@@ -307,7 +307,8 @@ def Execute(arch, mode, args, options, suites, workspace):
mode_flags, options.verbose,
timeout, options.isolates,
options.command_prefix,
options.extra_flags)
options.extra_flags,
options.no_i18n)
# Find available test suites and read test cases from them.
variables = {
......
......@@ -28,7 +28,7 @@
class Context():
def __init__(self, arch, mode, shell_dir, mode_flags, verbose, timeout,
isolates, command_prefix, extra_flags):
isolates, command_prefix, extra_flags, noi18n):
self.arch = arch
self.mode = mode
self.shell_dir = shell_dir
......@@ -38,13 +38,14 @@ class Context():
self.isolates = isolates
self.command_prefix = command_prefix
self.extra_flags = extra_flags
self.noi18n = noi18n
def Pack(self):
return [self.arch, self.mode, self.mode_flags, self.timeout, self.isolates,
self.command_prefix, self.extra_flags]
self.command_prefix, self.extra_flags, self.noi18n]
@staticmethod
def Unpack(packed):
# For the order of the fields, refer to Pack() above.
return Context(packed[0], packed[1], None, packed[2], False,
packed[3], packed[4], packed[5], packed[6])
packed[3], packed[4], packed[5], packed[6], packed[7])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment