[Lldb-commits] [PATCH] Handle unexpected output in test output

Ed Maste emaste at freebsd.org
Mon Aug 4 13:12:48 PDT 2014


Closed by commit rL214767 (authored by @emaste).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4775

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

Index: zorg/trunk/zorg/buildbot/commands/LitTestCommand.py
===================================================================
--- zorg/trunk/zorg/buildbot/commands/LitTestCommand.py
+++ zorg/trunk/zorg/buildbot/commands/LitTestCommand.py
@@ -140,7 +140,10 @@
   def describe(self, done=False):
     description = Test.describe(self, done)
     for name, count in self.logObserver.resultCounts.iteritems():
-        description.append('{0} {1}'.format(count, self.resultNames[name]))
+        if name in self.resultNames:
+            description.append('{0} {1}'.format(count, self.resultNames[name]))
+        else:
+            description.append('Unexpected test result output ' + name)
     return description
 
 ##
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4775.12176.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140804/130dcd82/attachment.bin>


More information about the lldb-commits mailing list