It's not without drive letters anymore. It's without the "initial" colon.<div><br></div><div>Do Windows paths starting with // (or \\, I never remember) have any colons somewhere?</div><div><br></div><div>Please remember to also change the commit message.</div><div><br></div><div>LGTM<span></span><br><div><br><br>On Saturday, 30 April 2016, Rui Ueyama via llvm-commits <<a href="javascript:_e(%7B%7D,'cvml','llvm-commits@lists.llvm.org');" target="_blank">llvm-commits@lists.llvm.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ruiu updated this revision to Diff 55697.<br>
ruiu added a comment.<br>
<br>
- Update as per Reid's comment.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D19757" target="_blank">http://reviews.llvm.org/D19757</a><br>
<br>
Files:<br>
utils/lit/lit/TestRunner.py<br>
<br>
Index: utils/lit/lit/TestRunner.py<br>
===================================================================<br>
--- utils/lit/lit/TestRunner.py<br>
+++ utils/lit/lit/TestRunner.py<br>
@@ -568,6 +568,24 @@<br>
('%/t', tmpBase.replace('\\', '/') + '.tmp'),<br>
('%/T', tmpDir.replace('\\', '/')),<br>
])<br>
+<br>
+ # "%:[STpst]" are paths without Windows drive letters.<br>
+ if kIsWindows:<br>
+ substitutions.extend([<br>
+ ('%:s', re.sub(r'^(.):', r'\1', sourcepath)),<br>
+ ('%:S', re.sub(r'^(.):', r'\1', sourcedir)),<br>
+ ('%:p', re.sub(r'^(.):', r'\1', sourcedir)),<br>
+ ('%:t', re.sub(r'^(.):', r'\1', tmpBase) + '.tmp'),<br>
+ ('%:T', re.sub(r'^(.):', r'\1', tmpDir)),<br>
+ ])<br>
+ else:<br>
+ substitutions.extend([<br>
+ ('%:s', sourcepath),<br>
+ ('%:S', sourcedir),<br>
+ ('%:p', sourcedir),<br>
+ ('%:t', tmpBase + '.tmp'),<br>
+ ('%:T', tmpDir),<br>
+ ])<br>
return substitutions<br>
<br>
def applySubstitutions(script, substitutions):<br>
<br>
<br>
</blockquote></div></div>
<br><br>-- <br> F<br><br>