[openstack-dev] Issues when running unit tests in OpenStack

Doug Hellmann doug.hellmann at dreamhost.com
Tue Apr 8 15:36:06 UTC 2014


On Tue, Apr 8, 2014 at 11:21 AM, Mehdi Abaakouk <sileht at sileht.net> wrote:
> Hi,
>
> Le 2014-04-08 17:11, Ben Nemec a écrit :
>
>> It should be possible to switch back to testr for the py33 tests if we
>> use the regex syntax for filtering out the tests that don't work in
>> py3.  The rpc example is
>> https://github.com/openstack/oslo-incubator/blob/master/tox.ini#L21
>> and if you look at what tests2skip.py does in the tripleo tempest
>> element it should be an example of how to filter out failing tests:
>>
>> https://github.com/openstack/tripleo-image-elements/blob/master/elements/tempest/bin/run-tempest#L110
>
>
> Unfortunately, it won't work because testr/subunit needs to load all python
> files to compute the tests list, and then filter it with the regexes
> But in python3, all files cannot be loaded yet. This is why nosetests is
> used currently.

We can remove the rpc code from the incubator after Juno, but until
then we will need to work around this (either in the incubator or by
waiting until the modules move to their own repositories as part of
graduating to create new libraries).

Doug



More information about the OpenStack-dev mailing list