[py-dev] py.test exit code 0 even on failure
holger krekel
hpk at trillke.net
Sat May 14 12:31:44 CEST 2005
Hi Michael,
On Sat, May 14, 2005 at 10:31 +0100, Michael Twomey wrote:
> I've been plugging py.test into darc's automatic test features and
> I've found that py.test doesn't appear to exit with anything other
> than a 0, even when there are failures. This means that darcs won't
> notice that there were test failures on my commits. I haven't verified
> that this is the case on anything other than my mac.
>
> The following patch makes py.test exit with a 1 when there are
> problems (or at least a list of stuff returned by main). This works
> for me, though I'm sure there is a better spot/way to do this.
thanks for the patch, it is conceptually applied now. Now
currently py.test exits with 0 for successful runs, 1 for
runs with failures and 2 if it was keyboard-interrupted,
modulo platform problems.
cheers,
holger
More information about the Pytest-dev
mailing list