[Buildbot] #3101: exception while rendering logs
Buildbot trac
trac at buildbot.net
Mon Dec 8 20:37:13 UTC 2014
#3101: exception while rendering logs
-------------------+--------------------
Reporter: sa2ajj | Owner:
Type: defect | Status: new
Priority: major | Milestone: 0.9.0
Version: master | Resolution:
Keywords: web |
-------------------+--------------------
Comment (by Ben):
Trying to reproduce this, I wrote that test:
{{{
@defer.inlineCallbacks
def test_getLogLines_one_chunk_per_line(self):
yield self.insertTestData(self.backgroundData + [
fakedb.Log(id=201, stepid=101, name=u'stdio', slug=u'stdio',
complete=0, num_lines=200, type=u's')] + [
fakedb.LogChunk(logid=201, first_line=i, last_line=i+5,
compressed=0,
content="chunk %d\n\n\n\n" % i) for i in
range(0, 200, 5)
])
self.assertEquals((yield self.db.logs.getLogLines(201, 42, 48)),
u'\n\n\nchunk 45\n\n\n\n')
}}}
Which give different results on the real and fake db ...
--
Ticket URL: <http://trac.buildbot.net/ticket/3101#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list