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

Unified Diff: test/test262/testcfg.py

Issue 10538056: Merged r11546 into 3.9 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.9
Patch Set: Created 8 years, 6 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/mjsunit/big-array-literal.js ('k') | tools/check-static-initializers.sh » ('j') | 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 294b39c9163feac30f941e148ac415ce5f8b47ed..b05b205dd659293e6cd100df16fb56010ed092d0 100644
--- a/test/test262/testcfg.py
+++ b/test/test262/testcfg.py
@@ -31,6 +31,7 @@ import os
from os.path import join, exists
import urllib
import hashlib
+import sys
import tarfile
@@ -117,7 +118,11 @@ class Test262TestConfiguration(test.TestConfiguration):
if md5.hexdigest() != TEST_262_ARCHIVE_MD5:
raise Exception("Hash mismatch of test data file")
archive = tarfile.open(archive_name, 'r:bz2')
- archive.extractall(join(self.root))
+ 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)
if not exists(join(self.root, 'data')):
os.symlink(directory_name, join(self.root, 'data'))
« no previous file with comments | « test/mjsunit/big-array-literal.js ('k') | tools/check-static-initializers.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698