[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Logging in the python tests

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Wed, 7 Mar 2012 09:23:01 -0500

On 03/06/2012 05:29 PM, Hyrum K Wright wrote:
> After a bit of a bump today, I've added the use of the python logging
> module to our test suite as a way of logging output from the test
> framework and the tests themselves. The end goal is to remove all the
> many print() calls we have in the tests, and run almost everything
> through the logger, allowing us to better control where the log gets
> sent to, its formatting, etc.
>
> I'm sure I'll break more things along the way, and I've yet to fully
> iron out the standards for using INFO vs. WARN vs. ERROR within the
> tests, but I'd appreciate any insight or help or questions folks might
> have as this transition goes forward.

+1. One subgoal I would have for such a conversion is that --quiet runs
actually be quiet, printing *only* the FAIL: or XPASS: summary lines (not,
say, every stack trace behind every XFAIL: test such as happens today).

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2012-03-07 15:23:43 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.