lit: Normalize pathsep slashes also on %T.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 31 Aug 2011 03:56:17 +0000 (03:56 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 31 Aug 2011 03:56:17 +0000 (03:56 +0000)
On Python-w32 with mingw msys bash, %T was replaced to "x:\foo\bar...". msys bash cannot handle DOSish paths.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138852 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestRunner.py

index 0cc1f394d47e6a94394c990a12c00aa585887eb7..f5f7c19891b32f4033f850e0dff043b89ddd7f7e 100644 (file)
@@ -406,6 +406,7 @@ def parseIntegratedTestScript(test, normalize_slashes=False):
     if normalize_slashes:
         sourcepath = sourcepath.replace('\\', '/')
         sourcedir = sourcedir.replace('\\', '/')
+        tmpDir = tmpDir.replace('\\', '/')
         tmpBase = tmpBase.replace('\\', '/')
 
     # We use #_MARKER_# to hide %% while we do the other substitutions.