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

Unified Diff: test/test262/testcfg.py

Issue 10383128: Prepare for using GYP build on buildbots (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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
Index: test/test262/testcfg.py
diff --git a/test/test262/testcfg.py b/test/test262/testcfg.py
index 2c9bf06f1428741a935406c769bf085f16f5a21c..e04cea4824ded6d925689aeb2db9f22b11aaaf18 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
@@ -120,7 +121,10 @@ class Test262TestConfiguration(test.TestConfiguration):
os.remove(archive_name)
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'):
+ archive.extractall(u'\\\\?\\%s' % self.root)
Yang 2012/05/11 12:07:00 Maybe add a comment here.
Jakob Kummerow 2012/05/11 12:17:01 Done.
+ else:
+ archive.extractall(self.root)
os.rename(join(self.root, 'test262-%s' % revision), directory_name)
def GetBuildRequirements(self):

Powered by Google App Engine
This is Rietveld 408576698