[Checkins] SVN: zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py Include status flag in the subject to make compatible with our test result mail aggregator.

Christian Theune ct at gocept.com
Wed Jun 16 08:26:37 EDT 2010


Log message for revision 113525:
  Include status flag in the subject to make compatible with our test result mail aggregator.
  

Changed:
  U   zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py

-=-
Modified: zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py
===================================================================
--- zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py	2010-06-16 12:21:15 UTC (rev 113524)
+++ zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py	2010-06-16 12:26:37 UTC (rev 113525)
@@ -256,9 +256,14 @@
     rheostat(0, 'Total languishing bugs:  %d' % total)
     rheostat(1, '=' * 78)
 
+    if total == 0:
+        status = 'OK'
+    else:
+        status = 'FAILURE'
+
     if sendmail is True:
         mail_it(mail_host, mail_from, mail_to, 
-                'Total languishing bugs:  %d' % total, report)
+                '%s: Total languishing bugs:  %d' % (status, total), report)
     if total > 0:
         sys.exit(-1)
 



More information about the checkins mailing list