[zorg] r173892 - Add some debugging info to LitTestCommand.py

David Dean david_dean at apple.com
Tue Jan 29 20:41:23 PST 2013


Author: ddean
Date: Tue Jan 29 22:41:23 2013
New Revision: 173892

URL: http://llvm.org/viewvc/llvm-project?rev=173892&view=rev
Log:
Add some debugging info to LitTestCommand.py

Modified:
    zorg/trunk/zorg/buildbot/commands/LitTestCommand.py

Modified: zorg/trunk/zorg/buildbot/commands/LitTestCommand.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/commands/LitTestCommand.py?rev=173892&r1=173891&r2=173892&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/commands/LitTestCommand.py (original)
+++ zorg/trunk/zorg/buildbot/commands/LitTestCommand.py Tue Jan 29 22:41:23 2013
@@ -33,11 +33,13 @@ class LitLogObserver(LogLineObserver):
     # Check for test failure logs.
     m = self.kTestFailureLogStartRE.match(line)
     if m and self.inFailure:
-      assert m.group(0) == self.inFailure[0]
-      self.inFailure[1].append(line)
-      self.inFailureContext = True
-      return
-
+      if m.group(0) == self.inFailure[0]:
+          self.inFailure[1].append(line)
+          self.inFailureContext = True
+          return
+      else:
+          msg = 'm[0]: %r\ninFailure[0]: %r' % (m.group(0), self.inFailure[0])
+          raise ValueError, msg
     # Otherwise expect a test status line.
     m = self.kTestLineRE.match(line)
     if m:





More information about the llvm-commits mailing list