when selftest is interrupted, it should show the traceback of the interrupted test or better call pdb

Bug #140858 reported by Martin Pool
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

 affects bzr
 importance medium

It would be nice if, when selftest is interrupted by ^C, it printed out
any information on tests that had already run: their tracebacks, ideally
also the total number run and a traceback of the test that was
interrupted.

In fact maybe we should just always show the tracebacks immediately when
they occur rather than waiting to the end?

--
Martin Pool

John A Meinel (jameinel)
Changed in bzr:
importance: Medium → Wishlist
status: New → Triaged
Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Revision history for this message
Martin Packman (gz) wrote :

This appears to happen now, modulo the running test interfering with the KeyboardInterrupt exception which is always a risk. Is there any work left to be done in this bug?

Revision history for this message
Vincent Ladeuil (vila) wrote :

Except for the traceback of the test that was interrupted, I agree it seems to work now.
I don't think we can precisely say when this was fixed so instead of blindly marking this bug fix released, I'll change the subject to match the only remaining point.

summary: - when selftest is interrupted, it should show the results of all tests so
- far
+ when selftest is interrupted, it should show the traceback of the
+ interrupted test or better call pdb
Martin Pool (mbp)
tags: added: debug selftest
Vincent Ladeuil (vila)
tags: removed: test
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.