[Checkins] SVN: z3c.testsummarizer/trunk/ - Use the correct list name in summary
Jens Vagelpohl
jens at dataflake.org
Sun Apr 3 06:30:52 EDT 2011
Log message for revision 121208:
- Use the correct list name in summary
Changed:
U z3c.testsummarizer/trunk/CHANGES.txt
U z3c.testsummarizer/trunk/src/z3c/testsummarizer/format.py
U z3c.testsummarizer/trunk/src/z3c/testsummarizer/main.py
-=-
Modified: z3c.testsummarizer/trunk/CHANGES.txt
===================================================================
--- z3c.testsummarizer/trunk/CHANGES.txt 2011-04-02 16:18:32 UTC (rev 121207)
+++ z3c.testsummarizer/trunk/CHANGES.txt 2011-04-03 10:30:52 UTC (rev 121208)
@@ -4,7 +4,7 @@
2.1 (unreleased)
----------------
-- Nothing changed yet.
+- Use the correct list name in summary
2.0 (2011-03-31)
Modified: z3c.testsummarizer/trunk/src/z3c/testsummarizer/format.py
===================================================================
--- z3c.testsummarizer/trunk/src/z3c/testsummarizer/format.py 2011-04-02 16:18:32 UTC (rev 121207)
+++ z3c.testsummarizer/trunk/src/z3c/testsummarizer/format.py 2011-04-03 10:30:52 UTC (rev 121208)
@@ -15,13 +15,13 @@
import StringIO
-def create_summary(messages, start, end):
+def create_summary(messages, start, end, listname='zope-tests'):
messages = sorted(messages, key=lambda m: m.description)
out = StringIO.StringIO()
print >>out, "This is the summary for test reports received on the "
- print >>out, "zope-tests list between %s UTC and %s UTC:" % (
- start.isoformat(' '), end.isoformat(' '))
+ print >>out, "%s list between %s UTC and %s UTC:" % (
+ listname, start.isoformat(' '), end.isoformat(' '))
print >>out
print >>out, "See the footnotes for test reports of unsuccessful builds."
print >>out
Modified: z3c.testsummarizer/trunk/src/z3c/testsummarizer/main.py
===================================================================
--- z3c.testsummarizer/trunk/src/z3c/testsummarizer/main.py 2011-04-02 16:18:32 UTC (rev 121207)
+++ z3c.testsummarizer/trunk/src/z3c/testsummarizer/main.py 2011-04-03 10:30:52 UTC (rev 121208)
@@ -28,7 +28,8 @@
yesterday = date - datetime.timedelta(days=1)
archive = z3c.testsummarizer.archive.Archive(archive_url)
messages = archive.messages_sent_on(date)
- body = z3c.testsummarizer.format.create_summary(messages, yesterday, date)
+ body = z3c.testsummarizer.format.create_summary(messages, yesterday,
+ date, listname)
stats = {}
for message in messages:
More information about the checkins
mailing list