[Piuparts-commits] rev 599 - trunk

Holger Levsen holger at alioth.debian.org
Tue Dec 29 01:26:58 UTC 2009


Author: holger
Date: 2009-12-29 01:26:57 +0000 (Tue, 29 Dec 2009)
New Revision: 599

Modified:
   trunk/piuparts-report.py
Log:
include sub statistics

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-12-28 20:40:03 UTC (rev 598)
+++ trunk/piuparts-report.py	2009-12-29 01:26:57 UTC (rev 599)
@@ -858,8 +858,18 @@
                "rows": analysis,
              }))
             f.close()
-
-            link += "<li><a href=%s>%s</a></li>" % (template[:-len(".tpl")]+".html", linktarget_by_template[template])
+            if state == "failed-testing":
+              substats = "fail: %s bugged: %s</li>" % (
+                                                   analysis.split("/fail/").length - 1)
+                                                   analysis.split("/bugged/").length - 1)
+                                                  )
+            else:
+              substats = ""
+            link += "<li><a href=%s>%s</a>%s</li>" % (
+                                                                       template[:-len(".tpl")]+".html", 
+                                                                       linktarget_by_template[template]
+                                                                       substats
+                                                                      )
         link += "</ul>"
         return link
 




More information about the Piuparts-commits mailing list