[Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

Jay Pipes jaypipes at gmail.com
Fri Jun 29 17:54:14 UTC 2012


Hi Leander,

I've noticed some weirdness with the openstack.nose_plugin (which is 
used by default for the Nova test runner) sometimes either throwing 
errors (particularly errors raised by nosetests) away and/or coming up 
with a different set of skip tests than when running just with nosetests.

So, I'd recommend running just this:

./tools/with_venv.sh nosetests -svx nova

That will stop at the first error and probably will give you better 
insight into the actual errors that are likely being suppressed by the 
openstack nose plugin.

best,
-jay

On 06/29/2012 09:02 AM, Leander Bessa Beernaert wrote:
> Hello,
>
> I'm sorry to restart the topic
> (https://lists.launchpad.net/openstack/msg13621.html), but
> i accidentally deleted the message in my inbox :S.
>
> I'm still having the same problem, each time i add "import libvirt" to
> the file "diangostics.py" (https://review.openstack.org/#/c/8839/) the
> entire test suit won't run.
>
> *With the import* present i get the following output:
>
>       ----------------------------------------------------------------------
>     Ran 0 tests in 0.000s
>     OK Running PEP8 and HACKING compliance check...
>     2 imports missing in this test environment
>
>
> *Without the import *present it get this output:
>
>       ----------------------------------------------------------------------
>     Ran 3030 tests in 233.326s
>     OK (SKIP=22) Running PEP8 and HACKING compliance check...
>     11 imports missing in this test environment
>
>
>
> The problem now is that, according to the OpenStack conventions, the
> import must be present. However, with the import present i can't get any
> of the tests to run.
> I'm no expert in Python, so could someone please help me out here?
>
> Regards,
>
> Leander
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>





More information about the Openstack mailing list