ignore other status in case of timeout/disk full, etc.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 22 Nov 2010 00:40:47 +0000 (01:40 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 22 Nov 2010 00:40:47 +0000 (01:40 +0100)
buildfarm/web/__init__.py

index 5b2827f476fa28b746e3d136fc9f8b9d6f65c9a5..9e2ddf905b9dd44e75f68555391f3844dc4b5d7d 100755 (executable)
@@ -100,11 +100,11 @@ def html_build_status(status):
 
     ostatus = ""
     if "panic" in status.other_failures:
-        ostatus += "/"+span("status panic", "PANIC")
+        return "/"+span("status panic", "PANIC")
     if "disk full" in status.other_failures:
-        ostatus += "/"+span("status failed", "disk full")
+        return "/"+span("status failed", "disk full")
     if "timeout" in status.other_failures:
-        ostatus += "/"+span("status failed", "timeout")
+        return "/"+span("status failed", "timeout")
     if "inconsistent test result" in status.other_failures:
         ostatus += "/"+span("status failed", "unexpected return code")
     bstatus = "/".join([span_status(s) for s in status.stages])