[zorg] r214767 - Report unexpected output in test output
Ed Maste
emaste at freebsd.org
Mon Aug 4 13:03:45 PDT 2014
Author: emaste
Date: Mon Aug 4 15:03:44 2014
New Revision: 214767
URL: http://llvm.org/viewvc/llvm-project?rev=214767&view=rev
Log:
Report unexpected output in test output
LitTestCommand has a set of descriptions for test result codes, and
ends up throwing an exception if an unexpected result is somehow
produced by a test run. This happens with the LLDB tests.
Differential Revision: http://reviews.llvm.org/D4775
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=214767&r1=214766&r2=214767&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/commands/LitTestCommand.py (original)
+++ zorg/trunk/zorg/buildbot/commands/LitTestCommand.py Mon Aug 4 15:03:44 2014
@@ -140,7 +140,10 @@ class LitTestCommand(Test):
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
##
More information about the llvm-commits
mailing list