[llvm-commits] [llvm] r138640 - /llvm/trunk/utils/lit/lit/TestRunner.py

Douglas Gregor dgregor at apple.com
Fri Aug 26 12:05:18 PDT 2011


Author: dgregor
Date: Fri Aug 26 14:05:18 2011
New Revision: 138640

URL: http://llvm.org/viewvc/llvm-project?rev=138640&view=rev
Log:
lit: Add %T as a replacement for the output directory

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=138640&r1=138639&r2=138640&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Fri Aug 26 14:05:18 2011
@@ -397,7 +397,8 @@
     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 @@
                           ('%S', sourcedir),
                           ('%p', sourcedir),
                           ('%t', tmpBase + '.tmp'),
+                          ('%T', tmpDir),
                           # FIXME: Remove this once we kill DejaGNU.
                           ('%abs_tmp', tmpBase + '.tmp'),
                           ('#_MARKER_#', '%')])





More information about the llvm-commits mailing list