aboutsummaryrefslogtreecommitdiff
path: root/utils/lit
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-12-21 17:25:43 +0000
committerDavid Greene <greened@obbligato.org>2010-12-21 17:25:43 +0000
commit234da6832fa0fb9b242d112e6b816f35c56b026e (patch)
treebad023f01ea5b1e671399acfbc8024d512f6b510 /utils/lit
parent56500edc7a2599e651d39df71a714e1e255ed96a (diff)
Revert 122341. It breaks some darwin tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/TestRunner.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py
index bf6eed8691..a2f97cdb5e 100644
--- a/utils/lit/lit/TestRunner.py
+++ b/utils/lit/lit/TestRunner.py
@@ -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()