BZR_PDB=1 inside the testsuite?

Martin Pool mbp at sourcefrog.net
Mon Sep 10 05:26:26 BST 2007


On 9/9/07, Jelmer Vernooij <jelmer at samba.org> wrote:
> Is there some way to force bzr to enter the debugger when an unhandled
> assertion is raised within the testsuite or maybe simply when a test
> fails or errors ? I find myself using BZR_PDB=1 all the time when
> running functions outside of the testsuite, but the only way to get into
> the debugger within the testsuite appears to be adding 'import pdb;
> pdb.set_trace()' in the source code.

I don't think there is at present.  It would be very useful to add
one.  Ideally it would have some special intelligence about failures
inside blackbox tests, so would run pdb attached to the real
stdin/stdout and so on.


-- 
Martin



More information about the bazaar mailing list