Revert 122341. It breaks some darwin tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122346 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene
2010-12-21 17:25:43 +00:00
parent 56500edc7a
commit 234da6832f
3 changed files with 2 additions and 50 deletions

View File

@@ -8,8 +8,6 @@ import Util
import platform
import tempfile
import re
class InternalShellError(Exception):
def __init__(self, command, message):
self.command = command
@@ -446,13 +444,11 @@ def parseIntegratedTestScript(test, normalize_slashes=False):
if ln[ln.index('END.'):].strip() == 'END.':
break
# Apply substitutions to the script. Allow full regular
# expression syntax. Replace each matching occurrence of regular
# expression pattern a with substitution b in line ln.
# Apply substitutions to the script.
def processLine(ln):
# Apply substitutions
for a,b in substitutions:
ln = re.sub(a, b, ln)
ln = ln.replace(a,b)
# Strip the trailing newline and any extra whitespace.
return ln.strip()