<div dir="ltr">Hi,<div><br></div><div>Indeed, stable/grizzly contains the following code in the base test case class (quantum/tests/base.py):</div><div><br></div><div><div> if os.environ.get('OS_STDOUT_NOCAPTURE') not in TRUE_STRING:</div>
<div> stdout = self.useFixture(fixtures.StringStream('stdout')).stream</div><div> self.useFixture(fixtures.MonkeyPatch('sys.stdout', stdout))</div></div><div><br></div><div>so stdout is captured by default, and you should use OS_STDOUT_NOCAPTURE=1 instead.</div>
<div><br></div><div>The behavior was changed in this commit <a href="https://github.com/openstack/neutron/commit/91bd4bbaeac37d12e61c9c7b033f55ec9f1ab562">https://github.com/openstack/neutron/commit/91bd4bbaeac37d12e61c9c7b033f55ec9f1ab562</a>.</div>
<div><br></div><div>Thanks,</div><div>Roman</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 17, 2013 at 8:44 AM, Qiu Yu <span dir="ltr"><<a href="mailto:unicell@gmail.com" target="_blank">unicell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Jul 17, 2013 at 12:00 PM, Roman Podolyaka<br>
<<a href="mailto:rpodolyaka@mirantis.com">rpodolyaka@mirantis.com</a>> wrote:<br>
> Hi,<br>
><br>
> Ensure that stdout isn't captured by the corresponding fixture:<br>
><br>
> OS_STDOUT_CAPTURE=0 python -m testtools.run<br>
> neutron.tests.unit.openvswitch.test_ovs_neutron_agent.TestOvsNeutronAgent.test_port_update<br>
> Tests running...<br>
<br>
</div>Thanks Roman, ipdb works fine with test cases in Neutron master<br>
branch. And if you run 'python -m testtools.run {testcase}', stdout is<br>
not captured by default.<br>
<br>
However, the issue still exists with Neutron stable/grizzly branch,<br>
even with OS_STDOUT_CAPTURE=0. Not quite sure which change in trunk<br>
resolved this issue.<br>
<br>
Thanks,<br>
<div class="HOEnZb"><div class="h5">--<br>
Qiu Yu<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>