[openstack-dev] ipdb debugging in Neutron test cases?
Qiu Yu
unicell at gmail.com
Wed Jul 17 07:50:58 UTC 2013
On Wed, Jul 17, 2013 at 3:30 PM, Roman Podolyaka
<rpodolyaka at mirantis.com> wrote:
> Hi,
>
> Indeed, stable/grizzly contains the following code in the base test case
> class (quantum/tests/base.py):
>
> if os.environ.get('OS_STDOUT_NOCAPTURE') not in TRUE_STRING:
> stdout = self.useFixture(fixtures.StringStream('stdout')).stream
> self.useFixture(fixtures.MonkeyPatch('sys.stdout', stdout))
>
Oh, I see. Thank you so much, Roman.
> so stdout is captured by default, and you should use OS_STDOUT_NOCAPTURE=1
> instead.
>
Actually, both OS_STDOUT_NOCAPTURE=1 and OS_STDERR_NOCAPTURE=1 need to
be specified.
> The behavior was changed in this commit
> https://github.com/openstack/neutron/commit/91bd4bbaeac37d12e61c9c7b033f55ec9f1ab562.
>
> Thanks,
> Roman
--
Qiu Yu
More information about the OpenStack-dev
mailing list