Index: test/test262/testcfg.py |
diff --git a/test/test262/testcfg.py b/test/test262/testcfg.py |
index 89f729d9a34a533d8c58e0d1bca40d9e0ad0bf19..ea448121fa98c172ce0e6c439d5ea8cb0652ff30 100644 |
--- a/test/test262/testcfg.py |
+++ b/test/test262/testcfg.py |
@@ -36,9 +36,9 @@ from testrunner.local import testsuite |
from testrunner.objects import testcase |
-TEST_262_ARCHIVE_REVISION = "99aac3bc1cad" # This is the r365 revision. |
-TEST_262_ARCHIVE_MD5 = "aadbd720ce9bdb4f8f3de066f4d7eea1" |
-TEST_262_URL = "http://hg.ecmascript.org/tests/test262/archive/%s.tar.bz2" |
+TEST_262_ARCHIVE_REVISION = "fbba29f" # This is the r365 revision. |
+TEST_262_ARCHIVE_MD5 = "e1ff0db438cc12de8fb6da80621b4ef6" |
+TEST_262_URL = "https://github.com/tc39/test262/tarball/%s" |
TEST_262_HARNESS = ["sta.js", "testBuiltInObject.js", "testIntl.js"] |
@@ -91,7 +91,7 @@ class Test262TestSuite(testsuite.TestSuite): |
def DownloadData(self): |
revision = TEST_262_ARCHIVE_REVISION |
archive_url = TEST_262_URL % revision |
- archive_name = os.path.join(self.root, "test262-%s.tar.bz2" % revision) |
+ archive_name = os.path.join(self.root, "tc39-test262-%s.tar.gz" % revision) |
directory_name = os.path.join(self.root, "data") |
directory_old_name = os.path.join(self.root, "data.old") |
if not os.path.exists(archive_name): |
@@ -100,7 +100,7 @@ class Test262TestSuite(testsuite.TestSuite): |
if os.path.exists(directory_name): |
os.rename(directory_name, directory_old_name) |
if not os.path.exists(directory_name): |
- print "Extracting test262-%s.tar.bz2 ..." % revision |
+ print "Extracting test262-%s.tar.gz ..." % revision |
md5 = hashlib.md5() |
with open(archive_name, "rb") as f: |
for chunk in iter(lambda: f.read(8192), ""): |
@@ -108,13 +108,13 @@ class Test262TestSuite(testsuite.TestSuite): |
if md5.hexdigest() != TEST_262_ARCHIVE_MD5: |
os.remove(archive_name) |
raise Exception("Hash mismatch of test data file") |
- archive = tarfile.open(archive_name, "r:bz2") |
+ archive = tarfile.open(archive_name, "r:gz") |
if sys.platform in ("win32", "cygwin"): |
# Magic incantation to allow longer path names on Windows. |
archive.extractall(u"\\\\?\\%s" % self.root) |
else: |
archive.extractall(self.root) |
- os.rename(os.path.join(self.root, "test262-%s" % revision), |
+ os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), |
directory_name) |