Skip to content
Snippets Groups Projects
Commit 37e94d06 authored by Douglas Gregor's avatar Douglas Gregor
Browse files

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

llvm-svn: 138640
parent 0a76c0cf
No related branches found
No related tags found
No related merge requests found
......@@ -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_#', '%')])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment