diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index bf6eed86917..6430cddf912 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -451,8 +451,12 @@ def parseIntegratedTestScript(test, normalize_slashes=False): # expression pattern a with substitution b in line ln. def processLine(ln): # Apply substitutions + # FIXME: Investigate why re.sub doesn't work on Windows for a,b in substitutions: - ln = re.sub(a, b, ln) + if kIsWindows: + ln = ln.replace(a,b) + else: + ln = re.sub(a, b, ln) # Strip the trailing newline and any extra whitespace. return ln.strip()