1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

lit: Add %T as a replacement for the output directory

llvm-svn: 138640
This commit is contained in:
Douglas Gregor 2011-08-26 19:05:18 +00:00
parent b279f20034
commit 7d590ad966

View File

@ -397,7 +397,8 @@ def parseIntegratedTestScript(test, normalize_slashes=False):
sourcedir = os.path.dirname(sourcepath)
execpath = test.getExecPath()
execdir,execbase = os.path.split(execpath)
tmpBase = os.path.join(execdir, 'Output', execbase)
tmpDir = os.path.join(execdir, 'Output')
tmpBase = os.path.join(tmpDir, execbase)
if test.index is not None:
tmpBase += '_%d' % test.index
@ -414,6 +415,7 @@ def parseIntegratedTestScript(test, normalize_slashes=False):
('%S', sourcedir),
('%p', sourcedir),
('%t', tmpBase + '.tmp'),
('%T', tmpDir),
# FIXME: Remove this once we kill DejaGNU.
('%abs_tmp', tmpBase + '.tmp'),
('#_MARKER_#', '%')])