add subtables inside each table for the main box that indicate what
percentage of tests passed

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@727 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/display.py b/tko/display.py
index e898849..fc8375e 100755
--- a/tko/display.py
+++ b/tko/display.py
@@ -24,7 +24,7 @@
 		self.header = header
 
 
-	def display(self):
+	def html(self):
 		if self.data:
 			data = self.data
 		else:
@@ -35,9 +35,8 @@
 		else:
 			box_html = 'td'
 
-		print "<%s bgcolor=%s>" % (box_html, self.color)
-		print data
-		print "</%s>" % box_html
+		return "<%s bgcolor=%s>%s</%s>" % \
+					(box_html, self.color, data, box_html)
 
 
 def print_table(matrix):
@@ -53,7 +52,7 @@
 		print '<tr>'
 		for element in row:
 			print element
-			element.display()
+			print element.html()
 		print '</tr>'
 	print '</table>'