tests/compare.py

branch
trunk
changeset 53
cd853ddb224c
parent 50
71bdbc1148af
child 54
cd43d2f61162
--- a/tests/compare.py	Sun Jan 20 11:10:48 2008 -0500
+++ b/tests/compare.py	Sun Jan 20 12:00:35 2008 -0500
@@ -165,9 +165,9 @@
         return None
 
     def grep_output(self, output):
-        if self.grep and (not re.search(self.grep, output)):
+        if self.grep and (not re.search(self.grep, output, re.MULTILINE)):
             return "output did not match %s" % (self.grep)
-        elif self.antigrep and re.search(self.antigrep, output):
+        elif self.antigrep and re.search(self.antigrep, output, re.MULTILINE):
             return "output matched antigrep %s" % (self.antigrep)
         return None
 

mercurial