Revision: 13436
Author:   [email protected]
Date:     Fri Jan 18 06:55:23 2013
Log:      tools/run-tests.py: Fixes for Windows

Review URL: https://codereview.chromium.org/11926015
http://code.google.com/p/v8/source/detail?r=13436

Modified:
 /branches/bleeding_edge/test/mjsunit/testcfg.py
 /branches/bleeding_edge/tools/testrunner/local/testsuite.py
 /branches/bleeding_edge/tools/testrunner/server/compression.py

=======================================
--- /branches/bleeding_edge/test/mjsunit/testcfg.py     Mon Oct 22 07:13:01 2012
+++ /branches/bleeding_edge/test/mjsunit/testcfg.py     Fri Jan 18 06:55:23 2013
@@ -75,7 +75,7 @@
               for f in files_list ]
     testfilename = os.path.join(self.root, testcase.path + self.suffix())
     if SELF_SCRIPT_PATTERN.search(source):
-      env = ["-e", "TEST_FILE_NAME=\"%s\"" % testfilename]
+ env = ["-e", "TEST_FILE_NAME=\"%s\"" % testfilename.replace("\\", "\\\\")]
       files = env + files
     files.append(os.path.join(self.root, "mjsunit.js"))
     files.append(testfilename)
=======================================
--- /branches/bleeding_edge/tools/testrunner/local/testsuite.py Fri Sep 28 07:59:00 2012 +++ /branches/bleeding_edge/tools/testrunner/local/testsuite.py Fri Jan 18 06:55:23 2013
@@ -30,6 +30,7 @@
 import os

 from . import statusfile
+from . import utils

 class TestSuite(object):

@@ -88,6 +89,8 @@
     used_rules = set()
     for t in self.tests:
       testname = self.CommonTestName(t)
+      if utils.IsWindows():
+        testname = testname.replace("\\", "/")
       if testname in self.rules:
         used_rules.add(testname)
         outcomes = self.rules[testname]
=======================================
--- /branches/bleeding_edge/tools/testrunner/server/compression.py Mon Sep 24 02:38:46 2012 +++ /branches/bleeding_edge/tools/testrunner/server/compression.py Fri Jan 18 06:55:23 2013
@@ -30,7 +30,6 @@
 try:
   import ujson as json
 except ImportError:
-  print("You should install UltraJSON, it is much faster!")
   import json
 import os
 import struct

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to