mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 18:42:36 +00:00
Add a %basename substitution.
This will be used to avoid various call to basename in the asan tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f79e38e07
commit
7066857d65
@ -706,11 +706,14 @@ def getDefaultSubstitutions(test, tmpDir, tmpBase, normalize_slashes=False):
|
|||||||
substitutions = []
|
substitutions = []
|
||||||
substitutions.extend([('%%', '#_MARKER_#')])
|
substitutions.extend([('%%', '#_MARKER_#')])
|
||||||
substitutions.extend(test.config.substitutions)
|
substitutions.extend(test.config.substitutions)
|
||||||
|
tmpName = tmpBase + '.tmp'
|
||||||
|
baseName = os.path.basename(tmpBase)
|
||||||
substitutions.extend([('%s', sourcepath),
|
substitutions.extend([('%s', sourcepath),
|
||||||
('%S', sourcedir),
|
('%S', sourcedir),
|
||||||
('%p', sourcedir),
|
('%p', sourcedir),
|
||||||
('%{pathsep}', os.pathsep),
|
('%{pathsep}', os.pathsep),
|
||||||
('%t', tmpBase + '.tmp'),
|
('%t', tmpName),
|
||||||
|
('%basename', baseName),
|
||||||
('%T', tmpDir),
|
('%T', tmpDir),
|
||||||
('#_MARKER_#', '%')])
|
('#_MARKER_#', '%')])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user