[PATCH] D31497: Add a %basename substitution
Rafael Ávila de Espíndola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 08:10:46 PDT 2017
rafael created this revision.
Herald added a reviewer: modocache.
This will be used to avoid various call to basename in the asan test.
https://reviews.llvm.org/D31497
Files:
utils/lit/lit/TestRunner.py
Index: utils/lit/lit/TestRunner.py
===================================================================
--- utils/lit/lit/TestRunner.py
+++ utils/lit/lit/TestRunner.py
@@ -700,11 +700,14 @@
substitutions = []
substitutions.extend([('%%', '#_MARKER_#')])
substitutions.extend(test.config.substitutions)
+ tmpName = tmpBase + '.tmp'
+ baseName = os.path.basename(tmpBase)
substitutions.extend([('%s', sourcepath),
('%S', sourcedir),
('%p', sourcedir),
('%{pathsep}', os.pathsep),
- ('%t', tmpBase + '.tmp'),
+ ('%t', tmpName),
+ ('%basename', baseName),
('%T', tmpDir),
('#_MARKER_#', '%')])
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31497.93481.patch
Type: text/x-patch
Size: 827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170330/b1b63d4f/attachment.bin>
More information about the llvm-commits
mailing list