Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Unified Diff: test/test262/testcfg.py

Issue 1713993002: [Swarming] Speed up test262 upload/download. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix /\ Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/test262/test262.isolate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test262/testcfg.py
diff --git a/test/test262/testcfg.py b/test/test262/testcfg.py
index f222e1e37d9e6e37369249d73f06c22d1db7c0d6..b5ad30949d8c3ae337128bfb17f47180fc34a8d0 100644
--- a/test/test262/testcfg.py
+++ b/test/test262/testcfg.py
@@ -39,6 +39,8 @@ from testrunner.local import testsuite
from testrunner.local import utils
from testrunner.objects import testcase
+ARCHIVE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data.tar")
+
TEST_262_HARNESS_FILES = ["sta.js", "assert.js"]
TEST_262_SUITE_PATH = ["data", "test"]
@@ -199,6 +201,11 @@ class Test262TestSuite(testsuite.TestSuite):
for f in archive_files:
os.remove(os.path.join(self.root, f))
+ print "Extracting archive..."
+ tar = tarfile.open(ARCHIVE)
+ tar.extractall(path=os.path.dirname(ARCHIVE))
+ tar.close()
+
def GetSuite(name, root):
return Test262TestSuite(name, root)
« no previous file with comments | « test/test262/test262.isolate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698