[jhbuild] [buildbot] fixed display of last lines of log in feeds
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] [buildbot] fixed display of last lines of log in feeds
- Date: Mon, 6 Sep 2010 08:36:03 +0000 (UTC)
commit 4bc61bceb4f632afc6734609424c854bd3255bf4
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Sep 6 10:35:38 2010 +0200
[buildbot] fixed display of last lines of log in feeds
jhbuild/buildbot/status/web/feeds.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/buildbot/status/web/feeds.py b/jhbuild/buildbot/status/web/feeds.py
index 771a6c7..d333bf4 100644
--- a/jhbuild/buildbot/status/web/feeds.py
+++ b/jhbuild/buildbot/status/web/feeds.py
@@ -154,6 +154,7 @@ class FeedResource(XmlResource):
title = projectName + ' ' + source + " failed on '" + builder_name + "'"
# get name of the failed step and the last 30 lines of its log.
+ lastlog = ''
if build.getLogs():
log = build.getLogs()[-1]
laststep = log.getStep().getName()
@@ -164,7 +165,6 @@ class FeedResource(XmlResource):
lastlog='<b>log file not available</b>'
lines = re.split('\n', lastlog)
- lastlog = ''
for logline in lines[max(0, len(lines)-30):]:
lastlog = lastlog + logline
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]