mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Add a %basename substitution.
This will be used to avoid various call to basename in the asan tests. llvm-svn: 299216
This commit is contained in:
parent
85e07f410f
commit
8faf0df49e
@ -706,11 +706,14 @@ def getDefaultSubstitutions(test, tmpDir, tmpBase, normalize_slashes=False):
|
||||
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_#', '%')])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user