]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Support pudb as a different post mortem debugger
authorMiguel Angel Ajo <mangelajo@redhat.com>
Tue, 28 Oct 2014 16:09:46 +0000 (17:09 +0100)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Fri, 14 Nov 2014 11:30:20 +0000 (12:30 +0100)
commitd37ff165f4cbf0079357895843dd2724e5a90b49
treeea38375e0af4c4c6750b8f061a5ddbb905653fd0
parent6d3ffa4878c7eb976d30e89a01847841bf245af5
Support pudb as a different post mortem debugger

Post mortem debugger starts pdb at the assert failure place
when OS_POST_MORTEM_DEBUGGER is set and an exception or assert
failure happens.

This patch adds a neutron env variable OS_POST_MORTEM_DEBUGGER
to allow invocation of pudb instead of pdb. pudb module is not
a hard requisite as it will be only imported if you set
OS_POST_MORTEM_DEBUGGER=pudb.

The old OS_POST_MORTEM_DEBUG env variable is removed now.

Change-Id: I5d40913add439cf9c30305bafc98af9f8cd4d12f
TESTING.rst
neutron/tests/base.py
neutron/tests/post_mortem_debug.py
neutron/tests/unit/test_post_mortem_debug.py