tests/compare.py

branch
trunk
changeset 69
35a2f45cdd3b
parent 54
cd43d2f61162
child 107
1b7450ae4c67
--- a/tests/compare.py	Thu Jul 10 19:31:23 2008 -0400
+++ b/tests/compare.py	Thu Jul 10 19:51:53 2008 -0400
@@ -165,9 +165,11 @@
         return None
 
     def grep_output(self, output):
-        if self.grep and (not re.search(self.grep, output, re.MULTILINE)):
+        if self.grep and (not re.search(self.grep.replace(' ', '\\s+'),
+                                        output, re.MULTILINE)):
             return "output did not match %s" % (self.grep)
-        elif self.antigrep and re.search(self.antigrep, output, re.MULTILINE):
+        elif self.antigrep and re.search(self.antigrep.replace(' ', '\\s+'),
+                                         output, re.MULTILINE):
             return "output matched antigrep %s" % (self.antigrep)
         return None
 

mercurial