[Lldb-commits] [lldb] r122922 - /lldb/trunk/test/dotest.py

Johnny Chen johnny.chen at apple.com
Wed Jan 5 14:50:11 PST 2011


Author: johnny
Date: Wed Jan  5 16:50:11 2011
New Revision: 122922

URL: http://llvm.org/viewvc/llvm-project?rev=122922&view=rev
Log:
Properly indent the short description of the test case to make it align with the
previously added ordinal number of the currently running test case.

Modified:
    lldb/trunk/test/dotest.py

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=122922&r1=122921&r2=122922&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Wed Jan  5 16:50:11 2011
@@ -796,9 +796,17 @@
                 global suite
                 counterWidth = len(str(suite.countTestCases()))
                 self.fmt = "%" + str(counterWidth) + "d: "
+                self.indentation = ' ' * (counterWidth + 2)
                 # This counts from 1 .. suite.countTestCases().
                 self.counter = 0
 
+            def getDescription(self, test):
+                doc_first_line = test.shortDescription()
+                if self.descriptions and doc_first_line:
+                    return '\n'.join((str(test), self.indentation + doc_first_line))
+                else:
+                    return str(test)
+
             def startTest(self, test):
                 self.counter += 1
                 if self.showAll:





More information about the lldb-commits mailing list