Commit 5d728ef4 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[test] Remove obsolete test262 archive extract

The archiving was removed as part of:
https://crrev.com/c/983573

Bug: v8:5881
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: I0c991d4c56c760e6d6ddcaa392e003a46ff96672
Reviewed-on: https://chromium-review.googlesource.com/983772Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52279}
parent 50206308
......@@ -50,7 +50,6 @@
/test/fuzzer/wasm_corpus.tar.gz
/test/mozilla/data
/test/test262/data
/test/test262/data.tar
/test/test262/harness
/test/wasm-js
/test/wasm-spec-tests/tests
......
......@@ -21,5 +21,4 @@ check_targets = []
# These are the list of GN files that run exec_script. This whitelist exists
# to force additional review for new uses of exec_script, which is strongly
# discouraged except for gypi_to_gn calls.
exec_script_whitelist =
build_dotfile_settings.exec_script_whitelist + [ "//test/test262/BUILD.gn" ]
exec_script_whitelist = build_dotfile_settings.exec_script_whitelist + []
......@@ -31,7 +31,6 @@ import itertools
import os
import re
import sys
import tarfile
from testrunner.local import statusfile
from testrunner.local import testsuite
......@@ -58,7 +57,6 @@ FEATURE_FLAGS = {
SKIPPED_FEATURES = set([])
DATA = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
ARCHIVE = DATA + ".tar"
TEST_262_HARNESS_FILES = ["sta.js", "assert.js"]
TEST_262_NATIVE_FILES = ["detachArrayBuffer.js"]
......@@ -102,25 +100,8 @@ class TestSuite(testsuite.TestSuite):
for f in TEST_262_HARNESS_FILES]
self.harness += [os.path.join(self.root, "harness-adapt.js")]
self.localtestroot = os.path.join(self.root, *TEST_262_LOCAL_TESTS_PATH)
self._extract_sources()
self.parse_test_record = self._load_parse_test_record()
def _extract_sources(self):
# The archive is created only on swarming. Local checkouts have the
# data folder.
if (os.path.exists(ARCHIVE) and
# Check for a JS file from the archive if we need to unpack. Some other
# files from the archive unfortunately exist due to a bug in the
# isolate_processor.
# TODO(machenbach): Migrate this to GN to avoid using the faulty
# isolate_processor: http://crbug.com/669910
not os.path.exists(os.path.join(DATA, 'test', 'harness', 'error.js'))):
print "Extracting archive..."
tar = tarfile.open(ARCHIVE)
tar.extractall(path=os.path.dirname(ARCHIVE))
tar.close()
def _load_parse_test_record(self):
root = os.path.join(self.root, *TEST_262_TOOLS_PATH)
f = None
......
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