[llvm-commits] [llvm] r153213 - /llvm/trunk/utils/lit/lit/TestRunner.py
Nico Weber
nicolasweber at gmx.de
Wed Mar 21 12:56:43 PDT 2012
Author: nico
Date: Wed Mar 21 14:56:42 2012
New Revision: 153213
URL: http://llvm.org/viewvc/llvm-project?rev=153213&view=rev
Log:
Add a ${pathsep} variable to lit that expands to : (or ; on win32).
This is in braces so that it doesn't conflict with the existing %p.
It uses braces instead of parens because parens would have to be
regex-escaped.
Modified:
llvm/trunk/utils/lit/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=153213&r1=153212&r2=153213&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Wed Mar 21 14:56:42 2012
@@ -471,6 +471,7 @@
substitutions.extend([('%s', sourcepath),
('%S', sourcedir),
('%p', sourcedir),
+ ('%{pathsep}', os.pathsep),
('%t', tmpBase + '.tmp'),
('%T', tmpDir),
# FIXME: Remove this once we kill DejaGNU.
More information about the llvm-commits
mailing list