[Buildbot-devel] How to handle logfiles when multiple tests are run in a single buildstep

Fulvio Cervone fcervone at me.com
Tue Apr 12 22:23:36 UTC 2011


Bill,

If you have one step per test you will get a log per step (the stdio), and the link to each log file will be available to you; so you can just put the link in a mail and send it out (I assume that you need to send reports with pass and fail, so you will have a mail notifier, in which you can append lines from each log and generate a report).

Another way would be to get the steps to dump the output to a file, and then you can manipulate the file content and do whatever you see fit.

Just check the mail notifier section on the manual; it has a great example where you can see how to call the logs, parse them and stick the links to the logs in a message formatter (either in html or plain text if you prefer).

Either way is very simple, but maybe there are others that are even easier :)

-f


On Apr 12, 2011, at 11:16 AM, William Deegan wrote:

> Greetings,
> 
> I'll be changing a build from having a buildstep per test to on 
> buildstep which launches the tests into a compute farm via gridengine.
> 
> I'm wondering what's the best way to create links to the logfile 
> generated by these tests?
> Typically 1 or 2 per test.
> 
> Ideally the buildstep would show the number of passed/failed tests and 
> have links to all the tests logfiles.
> 
> Any advice on the simplest way to accomplish this is most welcome!
> 
> Thanks,
> Bill
> 
> ------------------------------------------------------------------------------
> Forrester Wave Report - Recovery time is now measured in hours and minutes
> not days. Key insights are discussed in the 2010 Forrester Wave Report as
> part of an in-depth evaluation of disaster recovery service providers.
> Forrester found the best-in-class provider in terms of services and vision.
> Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel





More information about the devel mailing list