mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize substitutions.
llvm-svn: 188348
This commit is contained in:
parent
6a7f10d027
commit
e2881219b4
@ -364,6 +364,15 @@ def parseIntegratedTestScript(test, normalize_slashes=False,
|
||||
('%T', tmpDir),
|
||||
('#_MARKER_#', '%')])
|
||||
|
||||
# "%/[STpst]" should be normalized.
|
||||
substitutions.extend([
|
||||
('%/s', sourcepath.replace('\\', '/')),
|
||||
('%/S', sourcedir.replace('\\', '/')),
|
||||
('%/p', sourcedir.replace('\\', '/')),
|
||||
('%/t', tmpBase.replace('\\', '/') + '.tmp'),
|
||||
('%/T', tmpDir.replace('\\', '/')),
|
||||
])
|
||||
|
||||
# Collect the test lines from the script.
|
||||
script = []
|
||||
xfails = []
|
||||
|
Loading…
Reference in New Issue
Block a user