| Index: test/test262/testcfg.py
|
| diff --git a/test/test262/testcfg.py b/test/test262/testcfg.py
|
| index 2c9bf06f1428741a935406c769bf085f16f5a21c..07f760c8d7a4d7a7c77300f9ba20f5578b3acb54 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,11 @@ 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'):
|
| + # Magic incantation to allow longer path names on Windows.
|
| + archive.extractall(u'\\\\?\\%s' % self.root)
|
| + else:
|
| + archive.extractall(self.root)
|
| os.rename(join(self.root, 'test262-%s' % revision), directory_name)
|
|
|
| def GetBuildRequirements(self):
|
|
|