[SCM] build.samba.org - branch master updated

Matthieu Patou mat at samba.org
Tue Nov 9 09:55:57 MST 2010


The branch, master has been updated
       via  2851694 Use the correct css class for checker
      from  5b5ab12 include stage name in stages list.

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 2851694a27427261284b65ee0b72c0bcd2dea06e
Author: Matthieu Patou <mat at matws.net>
Date:   Tue Nov 9 19:56:36 2010 +0300

    Use the correct css class for checker

-----------------------------------------------------------------------

Summary of changes:
 web/build.py |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/web/build.py b/web/build.py
index 5933a20..16347be 100755
--- a/web/build.py
+++ b/web/build.py
@@ -89,15 +89,20 @@ def html_build_status(status):
     def span(classname, contents):
         return "<span class=\"%s\">%s</span>" % (classname, contents)
 
-    def span_status(st):
+    def span_status(n, st):
+        if n == "CC_CHECKER":
+            if st == 0:
+                return span("status checker", "ok")
+            else:
+                return span("status checker", st)
+
         if st is None:
             return span("status unknown", "?")
-        elif st == "-":
-            return span("status notapplicable", "-")
         elif st == 0:
             return span("status passed", "ok")
         else:
             return span("status failed", st)
+
     ostatus = ""
     if "panic" in status.other_failures:
         ostatus += "/"+span("status panic", "PANIC")
@@ -107,7 +112,7 @@ def html_build_status(status):
         ostatus += "/"+span("status failed", "timeout")
     if "make test error" in status.other_failures:
         ostatus += "/"+span("status failed", "unexpected return code")
-    bstatus = "/".join([span_status(s) for (n, s) in status.stages])
+    bstatus = "/".join([span_status(n, s) for (n, s) in status.stages])
     return bstatus + ostatus
 
 


-- 
build.samba.org


More information about the samba-cvs mailing list