aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-03-21 19:56:42 +0000
committerNico Weber <nicolasweber@gmx.de>2012-03-21 19:56:42 +0000
commit0191bfcf7a5ae1ccfad7afe8ced59a14ffaca2a6 (patch)
treedf63c9c7cf5431669ab625e29b39710d89398e03
parentb4746203986e943f3dc0af789c5dc8b34cc85db5 (diff)
downloadexternal_llvm-0191bfcf7a5ae1ccfad7afe8ced59a14ffaca2a6.zip
external_llvm-0191bfcf7a5ae1ccfad7afe8ced59a14ffaca2a6.tar.gz
external_llvm-0191bfcf7a5ae1ccfad7afe8ced59a14ffaca2a6.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153213 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/lit/lit/TestRunner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py
index e522acb..b5f7986 100644
--- a/utils/lit/lit/TestRunner.py
+++ b/utils/lit/lit/TestRunner.py
@@ -471,6 +471,7 @@ def parseIntegratedTestScript(test, normalize_slashes=False,
substitutions.extend([('%s', sourcepath),
('%S', sourcedir),
('%p', sourcedir),
+ ('%{pathsep}', os.pathsep),
('%t', tmpBase + '.tmp'),
('%T', tmpDir),
# FIXME: Remove this once we kill DejaGNU.