Index: test/test262/testcfg.py |
diff --git a/test/test262/testcfg.py b/test/test262/testcfg.py |
index 9da8f4efa4b5548783cd0a9433bd794acca21002..7b7001310b5513193faec824951daa5dede29068 100644 |
--- a/test/test262/testcfg.py |
+++ b/test/test262/testcfg.py |
@@ -39,7 +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") |
+DATA = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") |
+ARCHIVE = DATA + ".tar" |
TEST_262_HARNESS_FILES = ["sta.js", "assert.js"] |
@@ -203,7 +204,7 @@ class Test262TestSuite(testsuite.TestSuite): |
# The archive is created only on swarming. Local checkouts have the |
# data folder. |
- if os.path.exists(ARCHIVE): |
+ if os.path.exists(ARCHIVE) and not os.path.exists(DATA): |
print "Extracting archive..." |
tar = tarfile.open(ARCHIVE) |
tar.extractall(path=os.path.dirname(ARCHIVE)) |