[Openstack] [OpenStack] How to get the logging output in unit tests with tox?

Clark Boylan cboylan at sapwetik.org
Mon Aug 4 17:58:44 UTC 2014


On Mon, Aug 4, 2014, at 08:28 AM, Markus Zoeller wrote:
> The bug 1301830 describes the need for additional debug logging.
> When I run the unit tests with
>     tox -epy26
>     HostFiltersTestCase.test_availability_zone_filter_different
> I don't see any logging output.
> 
> How do I get the ouput of the logging?
> 
> Regards,
> Markus Zoeller
> 
> 
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Note questions like this should probably go to the openstack-dev list.
You may get a quicker response there.

The answer to the question depends on what project is being tested.
Looking at the bug it appears to be Nova. Nova uses subunit to record
its test logs. You will find the subunit logs in
.testrepository/$TESTIDNUMBER. These files should contain the logs you
are looking for.

Clark




More information about the Openstack mailing list